CoInternetGetSession function
Creates a session that allows temporary asynchronous pluggable protocols to be implemented and returns the IInternetSession interface of the session.
Syntax
STDAPI CoInternetGetSession( _Reserved_ DWORD dwSessionMode, IInternetSession **ppIInternetSession, _Reserved_ DWORD dwReserved );
Parameters
- dwSessionMode
-
Reserved. Must be set to 0.
- ppIInternetSession
-
The address of a pointer to the IInternetSession interface.
- dwReserved
-
Reserved. Must be set to 0.
Return value
Returns one of the following values.
| Return code | Description |
|---|---|
|
Success. |
|
Not enough memory to create a session. |
|
One of the arguments is invalid. |
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
Show: