Showing posts sorted by relevance for query device id. Sort by date Show all posts
Showing posts sorted by relevance for query device id. Sort by date Show all posts

Thursday, August 28, 2008

Getting a Device ID using the Compact Framework

Here are a couple of approaches I found for getting a Device ID using the compact framework. Both are lengthy solutions to something that should probably be built into platform.

http://msdn.microsoft.com/en-us/library/ms172516.aspx


http://msdn.microsoft.com/en-us/library/aa446562.aspx


http://blogs.msdn.com/jehance/archive/2004/07/12/181067.aspx

Thursday, October 2, 2008

Getting Windows Mobile Owner Name and Device Name

It is sometimes useful to get the Owner Name and/or the Device Name of the Windows Mobile device. If you are wanting a Device Id, then see this posting.

There are different ways to get the Owner Name and Device Name:

For Owner Name, add the following reference to your project:

Microsoft.WindowsMobileMicrosoft.WindowsMobile.Status

Then in your code:

Imports Microsoft.WindowsMobile.Status
.
.
.
MessageBox.Show(SystemState.OwnerName)

More info at:

http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=46306



To get the Device Name (which is what you find under Start/Settings/System Tab/About), you simply have to say:

MessageBox.Show(System.Net.Dns.GetHostName())

For more Info:

http://msdn.microsoft.com/en-us/library/system.net.dns.gethostname.aspx