Retrieves the attribute data for the specified file.
Syntax
BOOL WINAPI SdbGetFileAttributes(
_In_ LPCTSTR lpwszFileName,
_Out_ PATTRINFO *ppAttrInfo,
_Out_ LPDWORD lpdwAttrCount
);
Parameters
lpwszFileName [in]
The path to the file.
ppAttrInfo [out]
An array of ATTRINFO structures that contain the attribute data.
lpdwAttrCount [out]
The number of attributes.
Return value
The function returns TRUE on success or FALSE on failure.
Remarks
When you have finished with the data, free it using the SdbFreeFileAttributes function.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| DLL | Apphelp.dll |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
