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

# CoRegisterInitializeSpy(3w)

## NAME

**CoRegisterInitializeSpy** (OLE32.@)

## SYNOPSIS

HRESULT CoRegisterInitializeSpy\
  (\
   IInitializeSpy\* *spy*,\
   ULARGE\_INTEGER\* *cookie*\
  )

## DESCRIPTION

Add a Spy that watches CoInitializeEx calls.

## PARAMS

*spy* **\[In\]**  Pointer to **IUnknown** interface that will be QueryInterface'd.

*cookie* **\[II\]**  *cookie* receiver.

## RETURNS

**Success:** **S\_OK** if not already initialized, **S\_FALSE** otherwise.

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

## SEE ALSO

CoInitializeEx

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

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

Debug channel **"ole"**.
