Listing 1: wdj.h Defining an IOCTL command
// // Microsoft uses 0 - 0x7FFF, OEMs use 0x8000 - 0xFFFF // #define FILE_DEVICE_WDJDRV 0x00009500 // // Microsoft uses function codes 0-0x7FF, OEM's use 0x800 - 0xFFF // #define WDJ_IOCTL_INDEX 0x950 #define IOCTL_WDJ_REQUEST CTL_CODE(FILE_DEVICE_WDJDRV, \ WDJ_IOCTL_INDEX, \ METHOD_BUFFERED, \ FILE_ANY_ACCESS) /* End of File */