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

# CoMarshalHresult(3w)

## NAME

**CoMarshalHresult** (OLE32.@)

## SYNOPSIS

HRESULT CoMarshalHresult\
  (\
   LPSTREAM *pStm*,\
   HRESULT  *hresult*\
  )

## DESCRIPTION

Marshals an **HRESULT** value into a stream.

## PARAMS

*pStm* **\[In\]**  Stream that *hresult* will be marshalled into.

*hresult* **\[In\]**  **HRESULT** to be marshalled.

## RETURNS

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

**Failure:** A **COM** error code.

## SEE ALSO

CoUnmarshalHresult().

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
