Hi,
I'm trying to get InternetDial() working, and no matter what I try, it always crashes wininet.dll.
unsigned long int *conn;
InternetDial(hwndDlg,"GPRS",INTERNET_DIAL_UNATTENDED,conn,0);
I have included wininet.h.
I have added wininet.lib into linker.
hwndDlg is valid handle to my window.
"GPRS" is an existing RAS/DUN entry.
I've found some pieces of information on net that crashing may be due to 'parameter mismatch'. I couldn't find any more info though.
I haven't got any trouble working with other windows libraries and functions...
RasDial() from ras.h is working fine for me.
Anybody ? Any clues ?
For reference:
DWORD InternetDial(
HWND hwndParent,
LPTSTR lpszConnectoid,
DWORD dwFlags,
DWORD_PTR lpdwConnection,
DWORD dwReserved
);