tengo un problema al intentar utilizar la funcion InternetCheckConnection que se encuentra en la dll wininet.dll, dice q hay una Segmentation fault aqui un poco de codigo.
BOOL (WINAPI *pInternetCheckConnection)(LPCTSTR,DWORD,DWORD);
HINSTANCE hIcmpDll;
hIcmpDll = LoadLibrary ("wininet.dll");
if (hIcmpDll != NULL)
{
pInternetCheckConnection = (BOOL (WINAPI *)(LPCTSTR,DWORD,DWORD))GetProcAddress(hIcmpDll, "InternetCheckConnection");
pInternetCheckConnection("http://www.google.com", 1, 0);
FreeLibrary( hIcmpDll );
}
gracias.