andrew Black wrote:
$Bill Luebkert wrote:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp
...
Power Classes
The Power subcategory groups classes that represent power supplies,
batteries, and events
related to these devices.
Class Description
Win32_AssociatedBattery Relates a logical device and the battery
it is using.
Win32_Battery Represents a battery connected to the
computer system.
Win32_CurrentProbe Represents the properties of a current
monitoring sensor (ammeter).
Win32_PortableBattery Represents the properties of a portable
battery, such as one used for a notebook computer.
Win32_PowerManagementEvent Represents power management events
resulting from power state changes.
Win32_UninterruptiblePowerSupply Represents the capabilities and
management capacity of an uninterruptible power supply (UPS).
Win32_VoltageProbe Represents the properties of a voltage
sensor (electronic voltmeter).
Hi
That looks as though it has the info I want,. but I am afraid I don't
know enough about Win32 programming to get the info.
Could you point me to an example.
Sorry about that.
Andrew
One Win32_Battery example...
http://community.livejournal.com/perldev/4607.html
This example is a straight conversion from the VBS output of scriptomatic.
Get scriptomatic (free) from -
http://www.microsoft.com/technet/scriptcenter/tools/wmimatic.mspx
...with that you can generate code for all the classes $Bill
listed.
HTH - Lyn.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs