[Dev-C++] detecting net connected pc
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Horst R. <hr...@un...> - 2002-01-24 22:31:44
|
Hi,
is there any way to detect whether a PC is connected with a LAN. Recently
the function:
bool __stdcall FileExist(char* s)
{
struct _finddata_t f;
long hFile;
hFile = _findfirst(s, &f);
_findclose(hFile);
return (hFile == -1 ? 0 : -1);
} // FileExist
does it. But now, it does not.
Thanks for every tip
greetings Horst
|