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

# CoSwitchCallContext(3w)

## NAME

**CoSwitchCallContext** (OLE32.@)

## SYNOPSIS

HRESULT CoSwitchCallContext\
  (\
   IUnknown\*  *pObject*,\
   IUnknown\*\* *ppOldObject*\
  )

## DESCRIPTION

Switches the context of the currently executing server call in the current thread.

## PARAMS

*pObject* **\[In\]**  Pointer to new context object.

*ppOldObject* **\[Out\]**  Pointer to memory that will receive old context object pointer.

## RETURNS

**Success:** **S\_OK**.

**Failure:** **HRESULT** code.

## IMPLEMENTATION

Declared in **"objbase.h"**.

Implemented in **"dlls/ole32/compobj.c"**.

Debug channel **"ole"**.
