Listing partitions (on win32)

Roger Upole rupole at
Sun Jan 15 08:04:24 EST 2006

"Claude Henchoz" <claude.henchoz at> wrote in message news:1137286353.204837.31580 at
> Hi
> Is there any way of listing partitions on a (win32) computer without
> using WMI?
> Cheers, Claude

Using win32file.DeviceIOControl with IOCTL_DISK_GET_DRIVE_LAYOUT
as the control code should be able to retrieve the partitions
defined on a disk.
Unpacking the output buffer may get a little messy, though.


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

More information about the Python-list mailing list