Howdy, Stranger!

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


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!!!!


  • Justin BibJustin Bib USAMember Posts: 0

    _______ [ ] free ebooks and video tutorials about { PHP Swift Go Ruby MATLAB PL/SQL Perl Java Scratch Python C# C R Visual Basic Assembly Objective-C C++ JavaScript Delphi Visual Basic .NET Fortran Scheme COBOL Transact-SQL Erlang LabVIEW Logo Ada Scala Prolog Apex FoxPro SAS Hack Bash Lisp Lua Dart VBScript Alice Crystal Clojure ML Awk ABAP Rust F# Kotlin Julia D } _________

Sign In or Register to comment.