IFolderFilter::GetEnumFlags method

Allows a client to specify which classes of objects in a Shell folder should be enumerated. When used with SHBrowseForFolder, specifies the class or classes of items that should be shown in the dialog box tree view and which class or classes should not.

Syntax


HRESULT GetEnumFlags(
  [in]  IShellFolder       *psf,
  [in]  PCIDLIST_ABSOLUTE  pidlFolder,
  [in]  HWND               *phwnd,
  [out] DWORD              *pgrfFlags
);

Parameters

psf [in]

Type: IShellFolder*

A pointer to the folder's IShellFolder interface.

pidlFolder [in]

Type: PCIDLIST_ABSOLUTE

The PIDL of the folder.

phwnd [in]

Type: HWND*

A pointer to the host's window handle.

pgrfFlags [out]

Type: DWORD*

One or more SHCONTF values that specify the classes of object to enumerate.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IFolderFilter

 

 

Show: