#pragma BEGINDUMP
#include <hbapi.h>
#include <WinSock2.h>
HB_FUNC( WSASTARTUP )
{
static WSADATA wsa;
hb_retni( WSAStartup( 0x202, &wsa ) );
}
#pragma ENDDUMP
function Main()
MsgInfo( IsInternet() )
return nil
Function IsInternet()
WSAStartup()
RETURN GetHostByName( "www.microsoft.com" ) != "0.0.0.0"
If you mean local network, then you may check for a file existence:
if File( "\\machine\path\filename" )
Return to FiveWin for Pocket PC
Users browsing this forum: No registered users and 23 guests