PC Review


Reply
Thread Tools Rate Thread

Problems reading DeviceID on Intermec

 
 
Rob
Guest
Posts: n/a
 
      8th Mar 2007
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/archiv...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/micros...e5183e45b24389

but there aren't enough information.

 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      8th Mar 2007
I don't believe it was required for device OEMs to implement it until PPC
2003SE.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



"Rob" <(E-Mail Removed)> wrote in message
news:uncPe$(E-Mail Removed)...
> 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/archiv...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/micros...e5183e45b24389
>
> but there aren't enough information.



 
Reply With Quote
 
Peter van Rees
Guest
Posts: n/a
 
      8th Mar 2007

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




On Mar 8, 9:57 am, "Rob" <a...@a.com> wrote:
> 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/archiv...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 thishttp://groups.google.it/group/microsoft.public.dotnet.framework.compa...
>
> but there aren't enough information.



 
Reply With Quote
 
chris-s@mailcity.com
Guest
Posts: n/a
 
      8th Mar 2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can the deviceID be changed? jdf01m@yahoo.com Microsoft Dot NET Compact Framework 1 20th Apr 2007 10:56 PM
.NET CF 2.0 - Get DeviceID James Microsoft Dot NET Compact Framework 2 11th Jan 2006 01:39 PM
DeviceID is a bit long Nathan Microsoft Dot NET Compact Framework 3 26th Sep 2005 09:35 PM
DeviceId Harry Simpson Microsoft Dot NET Compact Framework 7 20th May 2005 03:27 PM
Unique DeviceID? Daniel Barisch Microsoft Dot NET Compact Framework 1 9th Sep 2003 12:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.