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.
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to