PrjGetVirtualizationInstanceInfo function (projectedfslib.h)
Retrieves information about the virtualization instance.
Syntax
HRESULT PrjGetVirtualizationInstanceInfo(
[in] PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT namespaceVirtualizationContext,
[out] PRJ_VIRTUALIZATION_INSTANCE_INFO *virtualizationInstanceInfo
);
Parameters
[in] namespaceVirtualizationContext
An opaque handle for the virtualization instance.
[out] virtualizationInstanceInfo
On input points to a buffer to fill with information about the virtualization instance. On successful return the buffer is filled in.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
ProjFS callback routines provide the virtualization instance handle in their callbackData parameters. A provider that manages multiple virtualization instances can use the InstanceID field of virtualizationInstanceInfo to identify which of its virtualization instances is receiving the callback.
The provider can use the WriteAlignment member of virtualizationInstanceInfo to determine the correct values to use for the byteOffset and length parameters of PrjWriteFileData.
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 |