[python-win32] Does pywin32 support SD card operation(IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL)?

Tim Roberts timr at probo.com
Fri Jul 27 19:29:28 CEST 2012


Jane Chen wrote:
> How can I know if my SD drive support the ioctl? I tested
> IOCTL_SFFDISK_DEVICE_COMMAND and it worked (did not get any errors.)
> However, IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL is not working.

Well, frankly, if the volume driver rejects the ioctl, then it probably
isn't supported.  I think you are now calling the ioctl correctly, so if
it were supported, you should have received a response.


> If IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL is not supported, do you know
> other ways to tell if the device is SD card?

No.  Why would you need to know this?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list