Solved

Getting System Name or Device Name for Pocket PC 2002 using .NET Compact Framework

Posted on 2003-11-18
5
883 Views
Last Modified: 2013-12-27
I am programming in .Net compact framework and using vb.net at the moment. I am porting over a desktop program to pocket pc having to recode most of the things, if not all. My question is: I used to use Environ("ComputerName") in vb 6 to get the computer name in order to identify this client that is going to connect to my remote database server running on SQL Server 2000. Now, I need to do the same on a pocket PC and i found out there's System name property under asset viewer>my pocket pc>Identity>System name which is equilvalent to About>Device ID tab > Device name, which i believe could be an equilvalent for a computername under windows Environment.

Can someone enlighten me on how to get this done in VB.net or even c#.net under .net compact framework?
0
Comment
Question by:imchris
5 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 125 total points
ID: 9779704
0
 

Expert Comment

by:papte
ID: 10135483
Hi,

The Device name is there in the registry at[HKEY_LOCAL_MACHINE\Ident] .
I did registry editing in VC6 using RegQueryValueEx() & RegOpenKeyEx().

0
 
LVL 7

Expert Comment

by:CJCraft
ID: 10303931
You can get the Device ID using the following:
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/deviceid.aspx

It is the serial number for the device.

You should be able to get the device name using the following:
System.Net.Dns.GetHostName();
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now