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

# ReadClassStg(3w)

## NAME

**ReadClassStg** (OLE32.@)

## SYNOPSIS

HRESULT ReadClassStg\
  (\
   IStorage\* *pstg*,\
   CLSID\*    *pclsid*\
  )

## DESCRIPTION

This method reads the **CLSID** previously written to a storage object with the WriteClassStg.

## PARAMS

*pstg* **\[In\]**  IStorage pointer.

*pclsid* **\[Out\]**  Pointer to where the **CLSID** is written.

## RETURNS

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

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

## IMPLEMENTATION

Declared in **"ole2.h"**.

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

Debug channel **"storage"**.
