Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetAttributes
Collapse the table of content
Expand the table of content

IShellItem::GetAttributes method

Gets a requested set of attributes of the IShellItem object.

Syntax


HRESULT GetAttributes(
  [in]  SFGAOF sfgaoMask,
  [out] SFGAOF *psfgaoAttribs
);

Parameters

sfgaoMask [in]

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 [out]

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]

Header

Shobjidl.h

DLL

Shell32.dll (version 6.0 or later)

See also

IShellItem
GetAttributesOf
GetAttributes

 

 

Community Additions

ADD
Show:
© 2015 Microsoft