Finding out if the device is cradled

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Please provide me the code to find out programmatically if the PocketPC
device is cradled.

Thanks!!
 
Hi Paul,

I wanted to find from the device.
I'm thinking of using the following code.

System.Net.IPHostEntry IPHost = Dns.GetHostByName(HostName);
string DeviceIP = IPHost.AddressList[0].ToString();
if(DeviceIP != IPAddress.Parse(IPAddressString).ToString())
{//cradled}

I still have to check if that works.

Thanks!!
 
That code will just confirm whether a network is present or not.

Are you trying to determine whether you are connected via ActiveSync?

Simon.

-MT said:
Hi Paul,

I wanted to find from the device.
I'm thinking of using the following code.

System.Net.IPHostEntry IPHost = Dns.GetHostByName(HostName);
string DeviceIP = IPHost.AddressList[0].ToString();
if(DeviceIP != IPAddress.Parse(IPAddressString).ToString())
{//cradled}

I still have to check if that works.

Thanks!!

Paul G. Tobey said:
From which end, the PC or the device?

Paul T.
 
Simon,

Yes. Please let me know how to do that.

Thanks!!

MT

Simon Hart said:
That code will just confirm whether a network is present or not.

Are you trying to determine whether you are connected via ActiveSync?

Simon.

-MT said:
Hi Paul,

I wanted to find from the device.
I'm thinking of using the following code.

System.Net.IPHostEntry IPHost = Dns.GetHostByName(HostName);
string DeviceIP = IPHost.AddressList[0].ToString();
if(DeviceIP != IPAddress.Parse(IPAddressString).ToString())
{//cradled}

I still have to check if that works.

Thanks!!

Paul G. Tobey said:
From which end, the PC or the device?

Paul T.

Hi,

Please provide me the code to find out programmatically if the
PocketPC
device is cradled.

Thanks!!
 
There's no absolutely correct answer. Here are a few notes from the
archives of this newsgroup, which you can search with GoogleGroups:

http://www.knowdotnet.com/articles/activesynccradle.html

http://groups.google.com/group/micr...f?q=determine+cradled&rnum=5#0958053d67a679bf

I'd probably just check to see if any network adapter had the right IP
address.

Paul T.

Jay said:
Simon,

Yes. Please let me know how to do that.

Thanks!!

MT

Simon Hart said:
That code will just confirm whether a network is present or not.

Are you trying to determine whether you are connected via ActiveSync?

Simon.

-MT said:
Hi Paul,

I wanted to find from the device.
I'm thinking of using the following code.

System.Net.IPHostEntry IPHost = Dns.GetHostByName(HostName);
string DeviceIP = IPHost.AddressList[0].ToString();
if(DeviceIP != IPAddress.Parse(IPAddressString).ToString())
{//cradled}

I still have to check if that works.

Thanks!!

:

From which end, the PC or the device?

Paul T.

Hi,

Please provide me the code to find out programmatically if the
PocketPC
device is cradled.

Thanks!!
 
Thank you.

Paul G. Tobey said:
There's no absolutely correct answer. Here are a few notes from the
archives of this newsgroup, which you can search with GoogleGroups:

http://www.knowdotnet.com/articles/activesynccradle.html

http://groups.google.com/group/micr...f?q=determine+cradled&rnum=5#0958053d67a679bf

I'd probably just check to see if any network adapter had the right IP
address.

Paul T.

Jay said:
Simon,

Yes. Please let me know how to do that.

Thanks!!

MT

Simon Hart said:
That code will just confirm whether a network is present or not.

Are you trying to determine whether you are connected via ActiveSync?

Simon.

Hi Paul,

I wanted to find from the device.
I'm thinking of using the following code.

System.Net.IPHostEntry IPHost = Dns.GetHostByName(HostName);
string DeviceIP = IPHost.AddressList[0].ToString();
if(DeviceIP != IPAddress.Parse(IPAddressString).ToString())
{//cradled}

I still have to check if that works.

Thanks!!

:

From which end, the PC or the device?

Paul T.

Hi,

Please provide me the code to find out programmatically if the
PocketPC
device is cradled.

Thanks!!
 
Back
Top