Problems reading DeviceID on Intermec

R

Rob

Hi all,
I tried the code showed here in order to get the DeviceID of several devices
(WindowsCE and PPC):
http://blogs.msdn.com/jehance/archive/2004/07/12/181116.aspx

In all the devices but one, an Intermec with Windows Mobile 2003, it worked
correctly.
In the Intermec, I get this error:

This platform may not support DeviceIDs -> System.DllNotFoundException:
unable to load DLL 'coredll.dll'

I also tried a c++ application that should return the deviceID, and it
didn't work too.

Is it possibile that on Intermec that API is not implemented? In other
Windows Mobile devices (both real and emulator), it worked correctly.
Isn't it a standard API? How can I know if a particular device implements it
or not?

I also found some documents, such as this
http://groups.google.it/group/micro...termec+deviceid&rnum=2&hl=it#14e5183e45b24389

but there aren't enough information.
 
G

Guest

I don't believe it was required for device OEMs to implement it until PPC
2003SE.
 
P

Peter van Rees

I too had problems with intermec devices.

I solved it by adjusting the buffersize in the call to
KernelIoControl. It had to be set to 39 instead of 20 for me to get it
working. Since this does not interfere with operation on 'normal'
devices, I just set my initial buffersize to 39 in all cases.

Hope this helps.

Peter
 
C

chris-s

Are you referring to the device serial number? If so, this is the code
I use....

[System.Runtime.InteropServices.DllImport("psuuid0c.dll",
EntryPoint="?GetSerNum@@YAHPAGK@Z")]
private static extern int GetSerNum(System.Text.StringBuilder
SerNum, int len);

public static string GetSerialNumber()
{
System.Text.StringBuilder serNum = new
System.Text.StringBuilder(new string('\0', 12));
int result = GetSerNum(serNum, 12);
return serNum.ToString();
}

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top