[python-win32] Volume Serial Number
Tony Cappellini
cappy2112 at gmail.com
Fri May 16 19:32:01 CEST 2008
That's not the serial number of the drive- as assigned by the drive
manufacturer.
If you want the SN from the drive manufacturer, you will need to issue an
IOCTL ATA Passthrough command which sends the ATA Identify Device command
to the drive. Unless the Winapi has a wrapper for that functionality, you
can't do that via Python.
You would have to install the Windows SDK to compile a tiny program to issue
the Identify Device command and pull out the SN from the data coming back,
which is only 512 bytes.
This would have to be written in C. It's not difficult to do and the program
would only require less than100 lines of C code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080516/fb67927e/attachment.htm>
More information about the python-win32
mailing list