ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TShellBrowser.GetAttributes Method

Get Attributes of the current object

Syntax
Pascal
function GetAttributes(Attributes: UINT): UINT;

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  

 

Copyright (c) 2011. All rights reserved.