PrjAllocateAlignedBuffer function (projectedfslib.h)
Allocates a buffer that meets the memory alignment requirements of the virtualization instance's storage device.
Syntax
void * PrjAllocateAlignedBuffer(
[in] PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT namespaceVirtualizationContext,
[in] size_t size
);
Parameters
[in] namespaceVirtualizationContext
Opaque handle for the virtualization instance.
[in] size
The size of the buffer required, in bytes.
Return value
Returns NULL if the buffer could not be allocated.
Remarks
Use PrjFreeAlignedBuffer to deallocate memory obtained by PrjAllocateAlignedBuffer.
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 |