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

# GetClassFile(3w)

## NAME

**GetClassFile** (OLE32.@)

## SYNOPSIS

HRESULT GetClassFile\
  (\
   LPCOLESTR *filePathName*,\
   CLSID\*    *pclsid*\
  )

## DESCRIPTION

Retrieves the class Id associated with the given filename.

## PARAMS

*filePathName* **\[In\]**  Filename to retrieve the class Id for.

*pclsid* **\[Out\]**  Address that receives the class Id for the file.

## RETURNS

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

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

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
