IShellItemResources::GetAttributes-Methode (shobjidl_core.h)

Ruft Ressourcenattribute ab.

Syntax

HRESULT GetAttributes(
  [out] DWORD *pdwAttributes
);

Parameter

[out] pdwAttributes

Typ: DWORD*

Ein Zeiger auf Ressourcenattribute. Im Folgenden sind Attributwerte aufgeführt.

FILE_ATTRIBUTE_READONLY

Der Wert ist 0x00000001.

FILE_ATTRIBUTE_HIDDEN

Der Wert ist 0x00000002.

FILE_ATTRIBUTE_SYSTEM

Der Wert ist 0x00000004.

FILE_ATTRIBUTE_DIRECTORY

Der Wert ist 0x00000010.

FILE_ATTRIBUTE_ARCHIVE

Der Wert ist 0x00000020.

FILE_ATTRIBUTE_ENCRYPTED

Der Wert ist 0x00000040.

FILE_ATTRIBUTE_NORMAL

Der Wert ist 0x00000080.

FILE_ATTRIBUTE_TEMPORARY

Der Wert ist 0x00000100.

FILE_ATTRIBUTE_SPARSE_FILE

Der Wert ist 0x00000200.

FILE_ATTRIBUTE_REPARSE_POINT

Der Wert ist 0x00000400.

FILE_ATTRIBUTE_COMPRESSED

Der Wert ist 0x00000800.

FILE_ATTRIBUTE_OFFLINE

Der Wert ist 0x00001000.

FILE_ATTRIBUTE_CONTENT_INDEXED

Der Wert ist 0x00002000.

FILE_ATTRIBUTE_VALID_FLAGS

Der Wert ist 0x00001ff7.

FILE_ATTRIBUTE_VALID_SET_FLAGS

Der Wert ist 0x000011a7.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows Vista [nur Desktop-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 [nur Desktop-Apps]
Zielplattform Windows
Kopfzeile shobjidl_core.h (shobjidl.h einschließen)