[python-win32] Detect whether a workstation is a laptop or desktop/server?
python at bdurham.com
python at bdurham.com
Mon Mar 8 03:22:02 CET 2010
Preston, Tony, and Steven,
I found the following WMI class which sounds like it might be
useful.
Determine whether a computer is a tower, a mini-tower, a laptop,
and so on by using the Win32_SystemEnclosure class and checking
the value of the ChassisType property.
http://msdn.microsoft.com/en-us/library/aa394587%28VS.85%29.aspx
Oddly enough, this function indicates that my laptop (new Sony
Vaio running Windows 7 Professional (64-bit) has no enclosure. :)
Well, its a start!
Thank you all for your ideas and help!
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100307/ec7d5ce8/attachment.html>
More information about the python-win32
mailing list