Rediger

Del via


IShellFolderViewType::EnumViews method

Retrieves an enumerator that will return one pointer to an item identifier list (PIDL) for every extended view.

Syntax

HRESULT EnumViews(
  [in]  ULONG       grfFlags,
  [out] IEnumIDList **ppenum
);

Parameters

grfFlags [in]

Type: ULONG

Flags indicating which items to include in the enumeration. For a list of possible values, see the SHCONTF enumerated type. This parameter may be ignored.

ppenum [out]

Type: IEnumIDList**

The address of a pointer variable of type IEnumIDList that receives the enumerator.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Views are represented to the user as hidden folders off the root directory (represented by PIDLs). Whenever appropriate, the default view (off the root folder) is represented as the NULL, or empty, PIDL.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
DLL
Shell32.dll