how do I DeviceIoControl in C#
-
without importing from win32 dll-s or how do I communicate with a device with C# build in classes. Does C# has something like this ? classes for registering/unregistering a service, and communicating via IOCTL's thank you
B.Gabriel
euacela wrote:
without importing from win32 dll-s
Use DeviceIoControl without using Win32?? Impossible. You have no choice but to import the function calls.
euacela wrote:
how do I communicate with a device with C# build in classes.
That depends entirely on the device in question, but if it's not connected to a Serial Port, you don't. There are no classes native to the .NET Framework that deal with device communication, like USB, PCI, low level disk/volume work, ...
euacela wrote:
classes for registering/unregistering a service
Yes, this is built into the .NET BCL. I believe it's the ServiceInstaller[^] class in the System.ServiceProcess namespace.
euacela wrote:
communicating via IOCTL's
No, this is NOT in the .NET BCL.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007