Gets the attributes of one or more file or folder objects contained in the object represented by IShellFolder.
HRESULT GetAttributesOf( UINT cidl, PCUITEMID_CHILD_ARRAY apidl, SFGAOF *rgfInOut );
The number of items from which to retrieve attributes.
The address of an array of pointers to ITEMIDLIST structures, each of which uniquely identifies an item relative to the parent folder. Each ITEMIDLIST structure must contain exactly one SHITEMID structure followed by a terminating zero.
Pointer to a single ULONG value that, on entry, contains the bitwise SFGAO attributes that the calling application is requesting. On exit, this value contains the requested attributes that are common to all of the specified items.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
To optimize this operation, do not return unspecified flags.
For a folder object, the SFGAO_BROWSABLE attribute implies that the client can bind to this object as shown in a general form here.
IShellFolder::BindToObject(..., pidl, IID_IShellFolder, &psfItem);
The client can then create an IShellView on that item through this statement.
IShellFolder::GetUIObjectOf(hwnd, 1, &pidl, IID_IDropTarget, NULL, &pv)
The SFGAO_NONENUMERATED attribute indicates an item that is not returned by the enumerator created by the IShellFolder::EnumObjects method.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|
|DLL||Shell32.dll (version 4.0 or later)|