---
name: "CoInternetGetSession"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CoInternetGetSession"
---

# CoInternetGetSession(3w)

## NAME

**CoInternetGetSession** (URLMON.@)

## SYNOPSIS

HRESULT CoInternetGetSession\
  (\
   DWORD              *dwSessionMode*,\
   IInternetSession\*\* *ppIInternetSession*,\
   DWORD              *dwReserved*\
  )

## DESCRIPTION

Create a new internet session and return an **IInternetSession** interface representing it.

## PARAMS

*dwSessionMode* **\[In\]**  Mode for the internet session.

*ppIInternetSession* **\[Out\]**  Destination for creates **IInternetSession** object.

*dwReserved* **\[In\]**  Reserved, must be **0.**

## RETURNS

**Success:** **S\_OK**. *ppIInternetSession* contains the **IInternetSession** interface.

**Failure:** **E\_INVALIDARG**, if any argument is invalid, or **E\_OUTOFMEMORY** if memory allocation fails.

## IMPLEMENTATION

Declared in **"urlmon.h"**.

Implemented in **"dlls/urlmon/session.c"**.

Debug channel **"urlmon"**.
