User Profile

Collapse

Profile Sidebar

Collapse
sanjay1983
sanjay1983
Last Activity: Mar 18 '13, 10:09 AM
Joined: Oct 28 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sanjay1983
    replied to DeviceIOControl for Battery Information
    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...
    See more | Go to post

    Leave a comment:


  • sanjay1983
    replied to DeviceIOControl for Battery Information
    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;
    ...
    See more | Go to post

    Leave a comment:


  • sanjay1983
    started a topic DeviceIOControl for Battery Information

    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
    See more | Go to post

  • 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);
    ...
    See more | Go to post

  • 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...
    See more | Go to post

    Leave a comment:


  • sanjay1983
    started a topic Access 'Interop.dsofile.dll' via reflection
    in .NET

    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}...
    See more | Go to post
No activity results to display
Show More
Working...