oh, sorry...the call you need is

UInt8 val;
UInt16 sz=sizeof(val);
UInt32 ifCreator,ifInstance;

//get creator and instance of PPP connection here...

NetLibIFSettingGet (netRefNum,ifCreator,ifInstance,netIFSettingUp,&val,&sz);

val now has the state (up or down)

On 3/19/07, Dmitry Grinberg <[EMAIL PROTECTED]> wrote:
which interface are you checking?
some are always up (loop)

On 3/19/07, Luca Bertoncello <[EMAIL PROTECTED]> wrote:
> "Dmitry Grinberg" <[EMAIL PROTECTED]> schrieb:
>
> > // Look for a system library
> > err = SysLibFind("Net.lib", &AppNetRefnum);
> > if (err || !AppNetRefnum) return err;
> >
> > //now you can call NetLibIFUp() using the AppNetRefNum...notice no
> > call to netlibopen. it is not needed...
>
> I see...
> But it does NOT work...
>
> So is my code:
>
> if(SysLibFind("Net.lib", &AppNetRefnum) == 0)
> {
>   if(NetLibIFUp(AppNetRefnum, Creator, Instance))
>     StrCopy(W, "T");
>   else
>     StrCopy(W, "F");
> }
> else
>   StrCopy(W, "0");
>
> then, by drawing the main window, I display the content of W.
> It is ALWAYS true, don't care if the PDA is connected or not...
>
> Where is the error?
>
> Thanks
> Luca Bertoncello
> ([EMAIL PROTECTED])
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
please see http://www.access-company.com/developers/forums/
>


--
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: DmitryGrinberg
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003



--
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: DmitryGrinberg
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003

--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to