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

# PropStgNameToFmtId(3w)

## NAME

**PropStgNameToFmtId** (OLE32.@)

## SYNOPSIS

HRESULT PropStgNameToFmtId\
  (\
   const LPOLESTR *str*,\
   FMTID\*         *rfmtid*\
  )

## DESCRIPTION

Returns the format Id corresponding to the given name.

## PARAMS

*str* **\[In\]**  Storage name to convert to a format **ID**.

*rfmtid* **\[Out\]**  Format Id corresponding to *str*.

## RETURNS

**E\_INVALIDARG** if *rfmtid* or *str* is **NULL** or if *str* can't be converted to a format **ID**, **S\_OK** otherwise.

## IMPLEMENTATION

Declared in **"propidl.h"**.

Implemented in **"dlls/ole32/stg\_prop.c"**.

Debug channel **"storage"**.
