How can i get the Type and Name of the device connected to Desktop

  • Thread starter Thread starter Priya
  • Start date Start date
P

Priya

Hi all,
I want to know the device type( Pocket PC or Smartphone)and Name of the
device which is connected to the desktop.
Please give me some guidelines.
Thanks
supriya
 
RAPI does not let you get to these values.

You can get this information through RAPI2 interfaces, or there are
API finctions exposed by CEUtil.dll that get you what you need.

For CEUtil, look at:

CeGetDeviceId
CeSvcOpen(CESVC_DEVICEX, ...
CeSvcGetString(..., "DeviceType", ...

The trick is that this will only work if the device has a standard
partnership with Activesync. If it has a guest partnership it will
not work.

W
 
Back
Top