Microsoft Developer Network > Forums Home > Smart Device Development Forums > Windows Mobile Development > How to get UUID number from HP iPAQ Pocket PC in Native C++ (VS 2005)?
Ask a questionAsk a question
 

QuestionHow to get UUID number from HP iPAQ Pocket PC in Native C++ (VS 2005)?

  • Thursday, January 11, 2007 8:17 PMflyingsnow Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    How can I retrieve the UUID number from HP iPAQ Pocket PC for my application in VS 2005 Native C++? Any source code?

    Our HP iPAQ devices have been upgraded to the rx1950 series. Before the upgrade, I was using the iPaq SDK function CPQInfoGetSerialNo() to return the exact serial number as found on the back of the device. Now they want to change to UUID.

    Thanks

    Sylvia

All Replies

  • Friday, January 12, 2007 4:49 PMflyingsnow Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Well I got the solution to my own question. I built and deployed successfully. I put my answer here in case someone else is in the same page as I was.

    The HP iPAQ device I am working with has both serial number (S/N xxxxxxxxxx)  printed on the back of the device and UUID displayed under system. My company now wants to use UUID instead for security.

    You can get the UUID by calling the native Windows CE .NET KernelIoControl() function. This function works with most Pocket PCs, but to make sure, call the managed Marshal.GetLastWin32Error method to get the Win32 error code.

    ERROR_NOT_SUPPORTED: sorry, you have no luck!

    ERROR_INSUFFICIENT_BUFFER : not too bad, increase the buffer size and try again.

     

    Sylvia