[python-win32] 8G USB sector number
Jane Chen
janechen_1979 at yahoo.com
Wed Aug 8 20:07:29 CEST 2012
Hi all,
I would like to get total sector number of my disk. However, I found that I cannot get 8G sectors because of the buffer size.
I only got 4G.
buf_fmt='LL' buf_size=struct.calcsize(buf_fmt) buf=win32file.DeviceIoControl(h, winioctlcon.IOCTL_DISK_GET_LENGTH_INFO, None, buf_size, None)
Could someone please tell me how to get the total sector number?
Thank you,
Jane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120808/2d09fadc/attachment.html>
More information about the python-win32
mailing list