Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a session that allows temporary asynchronous pluggable protocols to be implemented and returns the IInternetSession interface of the session.
STDAPI CoInternetGetSession(
_Reserved_ DWORD dwSessionMode,
IInternetSession **ppIInternetSession,
_Reserved_ DWORD dwReserved
);
dwSessionMode
Reserved. Must be set to 0.
ppIInternetSession
The address of a pointer to the IInternetSession interface.
dwReserved
Reserved. Must be set to 0.
Returns one of the following values.
Return code | Description |
---|---|
S_OK | Success. |
E_OUTOFMEMORY | Not enough memory to create a session. |
E_INVALIDARG | One of the arguments is invalid. |
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Urlmon.h |
Library |
Urlmon.lib |
DLL |
Urlmon.dll |
Please sign in to use this experience.
Sign in