PRJ_START_DIRECTORY_ENUMERATION_CB callback function (projectedfslib.h)
Informs the provider that a directory enumeration is starting.
Syntax
PRJ_START_DIRECTORY_ENUMERATION_CB PrjStartDirectoryEnumerationCb;
HRESULT PrjStartDirectoryEnumerationCb(
[in] const PRJ_CALLBACK_DATA *callbackData,
[in] const GUID *enumerationId
)
{...}
Parameters
[in] callbackData
Information about the operation. The following callbackData members are necessary to implement this callback:
- FilePathName Identifies the directory to be enumerated.
- VersionInfo Provides version information for the directory to be enumerated.
The provider can access this buffer only while the callback is running. If it wishes to pend the operation and it requires data from this buffer, it must make its own copy of it.
[in] enumerationId
An identifier for this enumeration session.
Return value
Return code | Description |
---|---|
|
The provider successfully completed the operation. |
|
The directory to be enumerated does not exist in the provider’s backing store. |
|
The provider wishes to complete the operation at a later time. |
An appropriate HRESULT error code if the provider fails the operation.
Remarks
ProjFS requests a directory enumeration from the provider by first invoking this callback, then one or more PRJ_GET_DIRECTORY_ENUMERATION_CB callbacks, then the PRJ_END_DIRECTORY_ENUMERATION_CB callback. Because multiple enumerations may occur in parallel in the same location, ProjFS uses the enumerationId argument to associate the callback invocations into a single enumeration session, meaning that a given set of calls to the enumeration callbacks will use the same value for enumerationId for the same session.
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 |