IShellItem::GetAttributes method

Gets a requested set of attributes of the IShellItem object.

Syntax

HRESULT GetAttributes(
  SFGAOF sfgaoMask,
  SFGAOF *psfgaoAttribs
);

Parameters

sfgaoMask

Type: SFGAOF

Specifies the attributes to retrieve. One or more of the SFGAO values. Use a bitwise OR operator to determine the attributes to retrieve.

psfgaoAttribs

Type: SFGAOF*

A pointer to a value that, when this method returns successfully, contains the requested attributes. One or more of the SFGAO values. Only those attributes specified by sfgaoMask are returned; other attribute values are undefined.

Return Value

Type: HRESULT

Returns S_OK if the attributes returned exactly match those requested in sfgaoMask, S_FALSE if the attributes do not exactly match, or a standard COM error value otherwise.

Requirements

   
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 6.0 or later)

See Also

GetAttributes

GetAttributesOf

IShellItem