CoInternetGetSession
Creates a session that allows temporary asynchronous pluggable protocols to be implemented and returns the IInternetSession interface of the session.
Syntax
STDAPI CoInternetGetSession(
DWORD dwSessionMode,
IInternetSession * *ppIInternetSession,
DWORD dwReserved
);
Parameters
- dwSessionMode
Reserved. Must be set to zero. - ppIInternetSession
Address of a pointer to the IInternetSession interface. - dwReserved
Reserved. Must be set to zero.
Return Values
Returns one of the following values:
- S_OK
Successful. - E_OUTOFMEMORY
Not enough memory to create a session. - E_INVALIDARG
One of the arguments is invalid.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib
See Also
Send Feedback on this topic to the authors