"Jeff Loucks" <[EMAIL PROTECTED]> schrieb:
> Ooops, forgot to increment index. I did too quick a job extracting the
> example from my code. The point is to start index at 0 and increment until
> NetLib tells me it's too big.
I tough it...
So is right?
Boolean IsAnyNetworkUp(UInt16 libRefNum)
{
UInt16 instance,size,index = 0;
UInt32 creator;
UInt8 value;
Err err;
while(1)
{
err = NetLibIFGet(libRefNum,index,&creator,&instance);
if (err == netErrInvalidInterface)
return false;
if (err == errNone && creator != netIFCreatorLoop)
{
size = sizeof(value);
if(NetLibIFSettingGet(libRefNum,creator,instance,netIFSettingUp,&value,&size)
== errNone && value != 0) return true;
}
index++;
}
}
But it does not work anyway...
I call the function and it does not return a value...
Any idea?
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/