[Qt-interest] How can I get the hard disk serial number in Windows ?

Bob Hood bhood2 at comcast.net
Tue Jun 30 05:01:24 CEST 2009


Mhayk Whandson wrote:
> Hi all,
>
> Qt have a class which get the hard disk serial number ? Anyone have an
> idea how can I get in Microsoft Windows without to use WMI.

How about...QProcess() a "dir" of "C:\", and then QRegExp() the process
standard output for "Serial number is (\d+)"


Render me gone,                       |||
Bob                                 ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
                      "If ya can't beat 'em, tariff 'em."
                                   - /Harley-Davidson Motor Company/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090629/83050fa9/attachment.html 


More information about the Qt-interest-old mailing list