Share via


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
S_OK

Success.

E_OUTOFMEMORY

Not enough memory to create a session.

E_INVALIDARG

One of the arguments is invalid.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Urlmon.h

Library

Urlmon.lib

DLL

Urlmon.dll