OpenNET CF Ping function works great to detect whether I can get a label to
a network printer to print or not. Used to use the HttpRequest trick but
the Ping kinda does two chores at one time - network connectivity and
individual network device availability.
What I need is someway to figure out whether I'm connected via ActiveSync
since this will block the Ping packets and lead me to believe I can't print
when in fact I can print.
So I need a way to check to make sure i don't have an acive ActiveSync
connection before I try to Ping.
Anyone know of a good way? I've searched the group archives but hoped there
was a way lately.

TIA
Harry

Re: Ping, HTTP Request, and ActiveSync by Chris

Chris
Mon May 05 16:56:56 CDT 2008

Try resolving the hostname "ppp_peer". If it resolves, you have an
ActiveSync connection.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

"Harry Simpson" <hssimpson@phgt.net> wrote in message
news:%230vcVfvrIHA.420@TK2MSFTNGP02.phx.gbl...
> OpenNET CF Ping function works great to detect whether I can get a label
> to a network printer to print or not. Used to use the HttpRequest trick
> but the Ping kinda does two chores at one time - network connectivity and
> individual network device availability.
> What I need is someway to figure out whether I'm connected via ActiveSync
> since this will block the Ping packets and lead me to believe I can't
> print when in fact I can print.
> So I need a way to check to make sure i don't have an acive ActiveSync
> connection before I try to Ping.
> Anyone know of a good way? I've searched the group archives but hoped
> there was a way lately.
>
> TIA
> Harry
>
>
>



Re: Ping, HTTP Request, and ActiveSync by Harry

Harry
Tue May 06 09:29:54 CDT 2008

Thanks Chris

I owe you a brewsky!!

Harry

"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:u7mgsrvrIHA.3780@TK2MSFTNGP03.phx.gbl...
> Try resolving the hostname "ppp_peer". If it resolves, you have an
> ActiveSync connection.
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
> "Harry Simpson" <hssimpson@phgt.net> wrote in message
> news:%230vcVfvrIHA.420@TK2MSFTNGP02.phx.gbl...
>> OpenNET CF Ping function works great to detect whether I can get a label
>> to a network printer to print or not. Used to use the HttpRequest trick
>> but the Ping kinda does two chores at one time - network connectivity and
>> individual network device availability.
>> What I need is someway to figure out whether I'm connected via ActiveSync
>> since this will block the Ping packets and lead me to believe I can't
>> print when in fact I can print.
>> So I need a way to check to make sure i don't have an acive ActiveSync
>> connection before I try to Ping.
>> Anyone know of a good way? I've searched the group archives but hoped
>> there was a way lately.
>>
>> TIA
>> Harry
>>
>>
>>
>
>