// wdfcommonbuffer.h
PVOID WdfCommonBufferGetAlignedVirtualAddress(
[in] WDFCOMMONBUFFER CommonBuffer
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF only]
The WdfCommonBufferGetAlignedVirtualAddress method returns the virtual address that is associated with a specified common buffer.
CommonBuffer
[in]A handle to a common buffer object that the driver obtained by a previous call to WdfCommonBufferCreate.
WdfCommonBufferGetAlignedVirtualAddress returns the virtual address of the buffer that is associated with the common buffer that the CommonBuffer parameter specifies.
A bug check occurs if the driver supplies an invalid object handle.
If the driver called WdfDeviceSetAlignmentRequirement to set a buffer alignment requirement, the framework aligns the common buffer according to that alignment requirement.
For more information about common buffers, see Using Common Buffers
For a code example that uses WdfCommonBufferGetAlignedVirtualAddress, see WdfCommonBufferCreate.
WdfCommonBufferGetAlignedLogicalAddress
WdfDeviceSetAlignmentRequirement