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

# SHGetViewStatePropertyBag(3w)

## NAME

**SHGetViewStatePropertyBag** (SHLWAPI.515)

## SYNOPSIS

HRESULT SHGetViewStatePropertyBag\
  (\
   LPCITEMIDLIST *pidl*,\
   LPWSTR        *bag\_name*,\
   DWORD         *flags*,\
   REFIID        *riid*,\
   void\*\*        *ppv*\
  )

## DESCRIPTION

Retrieves a property bag in which the view state information of a folder can be stored.

## PARAMS

*pidl* **\[In\]**  **PIDL** of the folder requested.

*bag\_name* **\[In\]**  Name of the property bag requested.

*flags* **\[In\]**  Optional *flags*.

*riid* **\[In\]**  **IID** of requested property bag interface.

*ppv* **\[Out\]**  Address to receive pointer to the new interface.

## RETURNS

**success:** **S\_OK**

**failure:** error code

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/shlwapi/ordinal.c"**.

Debug channel **"shell"**.
