PRJ_QUERY_FILE_NAME_CB callback function (projectedfslib.h)

Determines whether a given file path exists in the provider's backing store.

Syntax

PRJ_QUERY_FILE_NAME_CB PrjQueryFileNameCb;

HRESULT PrjQueryFileNameCb(
  const PRJ_CALLBACK_DATA *callbackData
)
{...}

Parameters

callbackData

Information about the operation.

Return value

Return code Description
S_OK
The queried file path exists in the provider's store.
HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
The queried file path does not exist in the provider's store.
HRESULT_FROM_WIN32(ERROR_IO_PENDING)
The provider wishes to complete the operation at a later time.
 

An appropriate HRESULT error code if the provider fails the operation.

Remarks

This callback is optional. If the provider does not supply an implementation of this callback, ProjFS will invoke the provider’s directory enumeration callbacks to determine the existence of a file path in the provider's store.

The provider should use PrjFileNameCompare as the comparison routine when searching its backing store for the specified file.

Requirements

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