Platform SDK: Hardware
Using Device Input and Output Control
Calling
DeviceIoControl
on Windows NT/2000
Calling
DeviceIoControl
on Windows 95/98