InternetAutodial function
Causes the modem to automatically dial the default Internet connection.
Syntax
BOOL InternetAutodial( _In_ DWORD dwFlags, _In_ HWND hwndParent );
Parameters
- dwFlags [in]
-
Controls this operation. This parameter can be one of the following values.
- hwndParent [in]
-
Handle to the parent window.
Return value
If the function succeeds, it returns TRUE.
If the function fails, it returns FALSE. Applications can call GetLastError to retrieve the error code.
Remarks
InternetAutodial does not support double-dial connections, SmartCard authentication, or connections that require registry-based certification.
InternetAutodial does not attempt to dial if there is an existing dial-up connection on the system. Also, if there is an existing LAN connection, and InternetAutodial is not configured to force dial (set the INTERNET_AUTODIAL_FORCE_ONLINE in the dwFlags parameter), InternetAutodial does not attempt to dial the connection and returns TRUE.
Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also