can you attach here?
Posted on 2002-06-05 11:02:11 by hunter
Sure here they are (they dont seem to have copyright thingies in them and come with the SDK) so hopefully ok?

May i ask what you are doing with them?
Posted on 2002-06-05 12:55:56 by Terab
do you have sensapi.inc too ?

It is network related: 'IsDestinationReachable'
Posted on 2002-06-05 13:12:38 by hunter

do you have sensapi.inc too ?

It is network related: 'IsDestinationReachable'



Unfortunately no, but it is fairly easy to construct one out of the .h file

the below are your function calling definitions

BOOL APIENTRY
IsDestinationReachableA(
LPCSTR lpszDestination,
LPQOCINFO lpQOCInfo
);

BOOL APIENTRY
IsDestinationReachableW(
LPCWSTR lpszDestination,
LPQOCINFO lpQOCInfo
);

BOOL APIENTRY
IsNetworkAlive(
LPDWORD lpdwFlags
);



and your constants and structure are below

#define NETWORK_ALIVE_LAN 0x00000001
#define NETWORK_ALIVE_WAN 0x00000002
#define NETWORK_ALIVE_AOL 0x00000004


typedef struct tagQOCINFO
{
DWORD dwSize;
DWORD dwFlags;
DWORD dwInSpeed;
DWORD dwOutSpeed;
} QOCINFO, *LPQOCINFO;



hope this helps, maybe someone else has the premade inc file
Posted on 2002-06-05 13:20:40 by Terab
Shouldn't this be:



#define NETWORK_ALIVE_[b]AOL[/b] 0xDEADBEEF
Posted on 2002-06-06 02:54:25 by bazik

Shouldn't this be:



#define NETWORK_ALIVE_[b]AOL[/b] 0xDEADBEEF


LOL

Just a thought, what about using the wininet dll functions? they can tell if a connection is present too - much bigger i suppose but all the incs have been done
Posted on 2002-06-06 02:58:22 by Terab