You can look this up in the registry at HKLM\Ident\Name
Using our Registry class, this is easy:
string deviceName = null;
int size = 128;
RegKey reg = new RegKey();
reg.Open(RegKey._HKEY_LOCAL_MACHINE,"Ident");
reg.QueryValue(out deviceName, "Name", ref size);
reg.Close();
HTH
Neil
--
Neil Cowburn
OpenNETCF.org Advisory Board Member
www.opennetcf.org
"Ian Williamson" <bmcpeake (AT) nospam (DOT) shaw.ca> wrote
Quote:
Greetings,
Any thoughts on how to return the computer name of the CE
handheld? I am trying to invoke GetComputerName, but
either it is not supported or I am using the wrong
parameter list.
Cheers, Ian Williamson |