0 out of 2 rated this helpful - Rate this topic

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 codeDescription
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

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.