Hi,
I have issue related to the Windows API "DeviceIOContro l" calling and its declaration. Actully, this API not returning value of "Battery_Inform ation" object. I need value of properties "DesignCapacity " and "FullChargeCapa city" from this object.
I have called this API "DevieIOControl " in method "ConnectWithDev ice".
You can also have suggest...
User Profile
Collapse
-
Sure... Below is the code:
Code:#region Variables Declaration private const int DIGCF_DEFAULT = 0x00000001; // only valid with DIGCF_DEVICEINTERFACE private const int DIGCF_PRESENT = 0x00000002; private const int DIGCF_ALLCLASSES = 0x00000004; private const int DIGCF_PROFILE = 0x00000008; private const int DIGCF_DEVICEINTERFACE = 0x00000010;
Leave a comment:
-
DeviceIOControl for Battery Information
Hi All,
Is there a way to call and get "Battery Information" using "DeviceIOContro l" API.
Appreciated, if answer with some utility or sample code.
Thanks,
Sanjay -
Laptop/Tablet BatteryCycleCount for determining its health
Hello All,
Please help me to get information of Laptop/Tablet Battery with property "BatteryCycleCo unt". I am play with the below APIs but not found any significaint solution.
Code:[DllImport("setupapi.dll", SetLastError = true)] protected static extern IntPtr SetupDiGetClassDevs(ref Guid gClass, [MarshalAs(UnmanagedType.LPStr)] string strEnumerator, IntPtr hParent, uint nFlags);
-
Thanks for reply,
I know if i registered then it not create me any problem, this is windows application and it will deploying in multiple system. My deployment process is just copy paste nothing else. so i will only copy dsofile on server and it will copy by our syncronization process. By reflection i will direct using the methods of dsofile.dll.
Please let me know if i missed out any code part.. or any alternate way...Leave a comment:
-
Access 'Interop.dsofile.dll' via reflection
Hi Everyone,
I am stuck to access file properties using 'Interop.dsofil e.dll'. I dont want registration of this assembly in system registry. I am using reflection to achive this, but at the time of create instance (Activator.Crea teInstance) of 'dsofile.OleDoc umentProperties Class' it throw the following registry exception:
"Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3}...
No activity results to display
Show More
Leave a comment: