[python-win32] Does pywin32 support SD card operation(IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL)?
Roger Upole
rupole at hotmail.com
Tue Jul 17 03:54:03 CEST 2012
That one isn't in winioctlcon.py yet, but you should be able to
define it relatively easily. According to the headers:
#define IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL \
CTL_CODE( FILE_DEVICE_DISK, 0x7a0, METHOD_BUFFERED, FILE_ANY_ACCESS)
You'll probably need to create the output buffer yourself and initialize the Size correctly.
typedef struct _SFFDISK_QUERY_DEVICE_PROTOCOL_DATA {
USHORT Size;
USHORT Reserved;
GUID ProtocolGUID;
}
Roger
More information about the python-win32
mailing list