InternetGoOnline function (wininet.h)
Prompts the user for permission to initiate connection to a URL.
Syntax
BOOL InternetGoOnline(
[in] LPSTR lpszURL,
[in] HWND hwndParent,
[in] DWORD dwFlags
);
Parameters
[in] lpszURL
Pointer to a null-terminated string that specifies the URL of the website for the connection.
[in] hwndParent
Handle to the parent window.
[in] dwFlags
This parameter can be zero or the following flag.
Value | Meaning |
---|---|
|
This flag is not used. |
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.
If the functions fails, it can return the following error code:
Return code | Description |
---|---|
|
One or more of the parameters is incorrect.
The dwFlags parameter contains a value other than zero or INTERNET_GOONLINE_REFRESH. |
Remarks
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wininet.h (include Wininet.h, Winineti.h, Wininet.h, Winineti.h) |
Library | Wininet.lib |
DLL | Wininet.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for