CfGetPlaceholderStateFromAttributeTag function (cfapi.h)

Gets a set of placeholder states based on the FileAttributes and ReparseTag values of the file.


CF_PLACEHOLDER_STATE CfGetPlaceholderStateFromAttributeTag(
  [in] DWORD FileAttributes,
  [in] DWORD ReparseTag


[in] FileAttributes

The file attribute information.

[in] ReparseTag

The reparse tag information from a file.

Return value

Can include CF_PLACEHOLDER_STATE; The placeholder state.


The FileAttributes and ReparseTag can be obtained by listing the directory containing the file or by directly querying FileAttributeTagInfo on the file.


Minimum supported client Windows 10, version 1709 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header cfapi.h
Library CldApi.lib
DLL CldApi.dll