PrjFileNameMatch function (projectedfslib.h)

Determines whether a file name matches a search pattern.

Syntax

BOOLEAN PrjFileNameMatch(
  [in] PCWSTR fileNameToCheck,
  [in] PCWSTR pattern
);

Parameters

[in] fileNameToCheck

A null-terminated Unicode string of at most MAX_PATH characters specifying the file name to check against pattern.

[in] pattern

A null-terminated Unicode string of at most MAX_PATH characters specifying the pattern to compare against fileNameToCheck.

Return value

True if fileNameToCheck matches pattern, False otherwise.

Remarks

The provider must use this routine when processing a PRJ_GET_DIRECTORY_ENUMERATION_CB callback to determine whether a name in its backing store matches the searchExpression passed to the callback. This routine performs pattern matching in the same way the file system does when it is processing a directory enumeration

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 [desktop apps only]
Minimum supported server Windows Server [desktop apps only]
Target Platform Windows
Header projectedfslib.h