The IOCTL_DISK_BASE is defined in ddk/ntdddisk.h as FILE_TYPE_DISK, which is 1;
MicroSoft defines it as FILE_DEVICE_DISK, which is 7 (defined in ddk/winddk.h).
IOCTL codes based on it get to driver, and the driver cannot understand them.
You are quite right. At one time, we had it correctly defined as FILE_DEVICE_DISK too, but it seems to have undergone a transcription error, during code refactoring. I'll fix it, per your patch.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh, I forgot to write: I used files from w32api-3.18.2-mingw32-dev.tar.xz
You are quite right. At one time, we had it correctly defined as
FILE_DEVICE_DISK
too, but it seems to have undergone a transcription error, during code refactoring. I'll fix it, per your patch.I applied [01d9f3], thanks.
Related
Commit: [01d9f3]