My bad. I should use 'Q' instead of 'LL'. Thank you Tim!
Jane
Jane Chen wrote:
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'
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)
Jane Chen wrote:
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)