DeviceIoControl (kernel32)
Last changed: -100.11.86.164

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern bool DeviceIoControl(IntPtr hDevice, uint dwIoControlCode,
   byte [] lpInBuffer, uint nInBufferSize, [Out] byte [] lpOutBuffer,
   uint nOutBufferSize, IntPtr lpBytesReturned, IntPtr lpOverlapped);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

This is great for interacting with devices; now perhaps someone can help with the SetupDi calls to actually discover the device handles, etc...? If you are able to conquer it (I wasn't) toss me a mail at dotnet at richardgoodwin dot com

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation