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

# CoRegisterChannelHook(3w)

## NAME

**CoRegisterChannelHook** (OLE32.@)

## SYNOPSIS

HRESULT CoRegisterChannelHook\
  (\
   REFGUID       *guidExtension*,\
   IChannelHook\* *pChannelHook*\
  )

## DESCRIPTION

Registers a process-wide hook that is called during **ORPC** calls.

## PARAMS

*guidExtension* **\[In\]**  **GUID** of the channel hook to register.

*pChannelHook* **\[In\]**  Channel hook object to register.

## RETURNS

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

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

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
