@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The iPAQGetAcAdapterPresent function determines if an AC adapter is present. !!!!C# Signature: [DllImport("iPAQUtil.dll", SetLastError=true)] private static extern bool iPAQGetAcAdapterPresent (ref DWORD lpdwACPresent); !!!!User-Defined Types: using DWORD = UInt32; !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: public bool ACAdapterPresent { get { // Try catch in case DLL call fails try { DWORD d = (DWORD)0; if (!iPAQGetAcAdapterPresent(ref d)) { // failed.. } else { return ((int)d == 1); } } catch (Exception ) { // can't find function/dll } return false; } } Documentation: iPAQGetAcAdapterPresent@msdn on MSDN
Edit ipaqutil.iPAQGetA...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.