IFolderFilter::GetEnumFlags method (shobjidl_core.h)
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
[in] psf
Type: IShellFolder*
A pointer to the folder's IShellFolder interface.
[in] pidlFolder
Type: PCIDLIST_ABSOLUTE
The PIDL of the folder.
[in] phwnd
Type: HWND*
A pointer to the host's window handle.
[out] pgrfFlags
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |