ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TShellBrowser.GetAttributes

Get Attributes of the current object.

Syntax
Pascal
function GetAttributes(pAttributes: UINT): UINT;
Parameters 
Description 
pAttributes: UINT 
The attributes that should be checked, from the SFGAO enumeration.  

The attributes of the current object.

The following list shows the attribute flags that may be returned by this method. File object attributes include capability flags, display attributes, contents flags, and miscellaneous attributes. You need to include the Delphi unit ShlObj to use the constants below.  

An object's capability flags may include zero or more of the following values:

SFGAO_CANCOPY
SFGAO_CANDELETE
SFGAO_CANLINK
SFGAO_CANMOVE
SFGAO_CANRENAME
SFGAO_CAPABILITYMASK
SFGAO_DROPTARGET
SFGAO_HASPROPSHEET

A file object's display attributes may include zero or more of the following values:

SFGAO_DISPLAYATTRMASK
SFGAO_GHOSTED
SFGAO_LINK
SFGAO_READONLY
SFGAO_SHARE

A file object's contents flags may include zero or more of the following values:

SFGAO_CONTENTSMASK
SFGAO_HASSUBFOLDER

A file object may have zero or more of the following miscellaneous attributes:

SFGAO_FILESYSTEM
SFGAO_FILESYSANCESTOR
SFGAO_FOLDER
SFGAO_REMOVABLE
SFGAO_VALIDATE

The description of the constants can be seen here: http://msdn.microsoft.com/en-us/library/bb762589%28v=vs.85%29.aspx