Hi,
> Does anyone know how to set the PDA Device Name using c#?
Take a look at using the Microsoft.Win32.Registry class to change the value
of the HKEY_LOCAL_MACHINE\Ident\Name string value.
For example:
using Microsoft.Win32;
using (RegistryKey key = Registry.LocalMachine.OpenSubKey("Ident", true))
{
key.SetValue("Name", "my_new_device_name");
key.Close();
}
You can verify that the change was picked up by the OS by executing
something like the following:
MessageBox.Show(System.Net.Dns.GetHostName(), "Current Device Name");
Hope this helps,
Christopher Fairbairn