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

# CoGetObject(3w)

## NAME

**CoGetObject** (OLE32.@)

## SYNOPSIS

HRESULT CoGetObject\
  (\
   LPCWSTR    *pszName*,\
   BIND\_OPTS\* *pBindOptions*,\
   REFIID     *riid*,\
   void\*\*     *ppv*\
  )

## DESCRIPTION

Gets the object named by converting the name to a moniker and binding to it.

## PARAMS

*pszName* **\[In\]**  String representing the object.

*pBindOptions* **\[In\]**  Parameters affecting the binding to the named object.

*riid* **\[In\]**  Interface to bind to on the objecct.

*ppv* **\[Out\]**  On output, the interface *riid* of the object represented by *pszName*.

## RETURNS

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

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

## SEE ALSO

MkParseDisplayName.

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
