To obtain detailed information about the battery status in winxp

1)I use The SetupDiGetClassDevs function: The ClassGuid parameter is a pointer to GUID_DEVICE_BATTERY (defined in batclass.h). To enumerate all of the batteries, set the Enumerator parameter to NULL and set the Flags parameter to DIGCF_PRESENT | DIGCF_INTERFACEDEVICE obtain to battery device information set .
2)To obtain the names of the battery devices use SetupDiGetInterfaceDeviceDetail functions on the data returned,
but The SP_DEVICE_INTERFACE_DETAIL_DATA structure :DevicePath not A NULL-terminated string that specifies the device path.
3)so not get a handle to the interface(by Createfile funtcion)

thank you help me!!!!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!