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
This blog is a depository for things I have found regarding VB.NET and C#.NET development (and other things I may need to remember). This blog is primarily for my own reference, but if the information I found is useful to others, then that is great. If others want to contribute with comments or other information, then that is great too.
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
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
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
Labels:
Device Name,
Owner Name,
Windows Mobile
Subscribe to:
Posts (Atom)