IOfflineFilesFileSysInfo::GetAttributes method (cscobj.h)

Retrieves the Win32 attributes for an item.

Syntax

HRESULT GetAttributes(
  [in]  OFFLINEFILES_ITEM_COPY copy,
  [out] DWORD                  *pdwAttributes
);

Parameters

[in] copy

An OFFLINEFILES_ITEM_COPY enumeration value identifying which copy (local or remote) to retrieve the attributes for.

Windows Vista:  This value must be OFFLINEFILES_ITEM_COPY_LOCAL.

[out] pdwAttributes

Receives the file attribute mask for the item. One or more of FILE_ATTRIBUTE_XXXXXX as defined in the Windows SDK. For more information, see the GetFileAttributes function.

Return value

Returns S_OK if successful, or an error value otherwise.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header cscobj.h
DLL CscSvc.dll; CscObj.dll

See also

IOfflineFilesFileSysInfo