Inside and Out…

An attempt to understand technology better…

CERapi – Determine connected device type…

Posted by Gaurav Khanna on April 2, 2005

I have added support in CERapi to determine the type of device (PocketPC, SmartPhone, etc) connected to via ActiveSync. The CESystemInformation class has a DeviceType property that will return a CEDeviceType enumeration value which indicates the type of device. The snippet below exemplifies this:

CESystemInformation si = rapi.SystemInformation;

// Device Type
Console.WriteLine(“You are connected with a {0}”,si.DeviceType.ToString());

And below is the output for my Typhoon:

Download the updated CERapi from http://www.wintoolzone.com/showpage.aspx?url=dotnet.aspx

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: