Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

iPAQGetSerialNumber (ipaqutil)
 

ipaqutil is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for iPAQGetSerialNumber in other DLLs exists, click on Find References to the right.

.
Summary
Get the actual IPAQ Serial # which is exposed in Settings/HP Asset Viewer. Tested on a IPAQ 6500 series which has the required dll as part of the OS.

[DllImport("iPAQUtil.dll", EntryPoint = "iPAQGetSerialNumber")]
private static extern bool iPAQGetSerialNumber([Out] StringBuilder SerialNumber);

Notes:

Tips & Tricks:

No tips or tricks required, should work first time!

Sample Code:

public static string GetIPAQDeviceID()

{

    StringBuilder sSerial = new StringBuilder(40);
    if (iPAQGetSerialNumber(sSerial) == false)
    {
        return null;
    }
    else
    {
        return sSerial.ToString();
    }

}

Documentation
Join the IPAQ Developers network to locate further information as this dll seems to be rarely documented.

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions