Radek Holý wrote:
> Hello,
>
> are somewhere in pywin32 library implemented these functions:
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa373163%28v=vs.85%29.aspx
> ?
Most of these are not in Pywin32, except for GetPwrCapabilities.
> If not, can you please advise how to use for ex
Cool. Thank you Tim!
Jane Chen wrote:
> Thank you for your help, Roger and Tim!
>
> Problem solved. I realized that I can simplify my problem by
> using win32file.ReadFile()to create a bin file.
You don't even need to go that far. There's nothing you can do with
win32file.ReadFile that you can
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)
Cou
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)
> buf=win32file.Devic
2012/8/8 Roger Upole :
> It's not really OT here, as there is a good bit of general discussion
> regarding Python and Windows, not just Pywin32.
> There's also a ctypes mailing list:
> https://lists.sourceforge.net/lists/listinfo/ctypes-users
Thank you very much, I'll try this discussion.
However