When I connect to a windows mobile device from the PC using the RAPI API I can get its device ID like so:
using (RemoteDeviceManager r = new RemoteDeviceManager())
{
using (RemoteDevice dev = r.Devices.FirstConnectedDevice)
{
//dev.DeviceId; <--the id
}
}
How can I get the same 'DeviceId' value on the device itself in compact framework?
Microsoft published a library article back in 2003 on Retrieving the Windows CE Device ID with the Microsoft .NET Compact Framework that I have been using with success.