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?
Best Answer
the complete code is:
then For instance:
Thank you jp2code.
I just completed the dots. Working for me in Windows Compact 7
EDIT: Ref:https://msdn.microsoft.com/en-us/library/ee478480.aspx 10/16/2014 This I/O control (IOCTL_HAL_GET_DEVICEID) is deprecated. Its functionality has been integrated into IOCTL_HAL_GET_DEVICE_INFO.
antonio