Ok - I have spent days on this and am not getting far.
I am trying to use IOCTL_STORAGE_QUERY_PROPERTY (defined in ntddstor.h) as a parameter to DeviceIoControl.
This previous forum thread shows using DeviceIoControl with a different value yet it was predefined by Hi-Toro (next to last post):
viewtopic.php?t=2643&highlight=deviceiocontrol
Specifically, this line:
However, all of these values are defined by a CTL_CODE "macro" (whatever that is), because the header file (winioctl.h) shows this:#IOCTL_DISK_GET_DRIVE_GEOMETRY = $70000
So my question is:#define IOCTL_DISK_GET_DRIVE_GEOMETRY CTL_CODE(IOCTL_DISK_BASE, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS)
How did Hi-Toro arrive at the correct value in purebasic based upon the Windows DDK definition?
The parameter I am trying to use, IOCTL_STORAGE_QUERY_PROPERTY, is defined in ntddstor.h as:
Can anyone help me determine the value of IOCTL_STORAGE_QUERY_PROPERTY?#define IOCTL_STORAGE_QUERY_PROPERTY CTL_CODE(IOCTL_STORAGE_BASE, 0x0500, METHOD_BUFFERED, FILE_ANY_ACCESS)
Thanks, but I am stumped.
