// wdfmemory.h
VOID WDF_MEMORY_DESCRIPTOR_INIT_BUFFER(
[out] PWDF_MEMORY_DESCRIPTOR Descriptor,
[in] PVOID Buffer,
[in] ULONG BufferLength
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WDF_MEMORY_DESCRIPTOR_INIT_BUFFER function initializes a WDF_MEMORY_DESCRIPTOR structure so that it describes a specified buffer.
Descriptor
[out]A pointer to a WDF_MEMORY_DESCRIPTOR structure.
Buffer
[in]A pointer to a memory buffer.
BufferLength
[in]The size, in bytes, of the memory buffer that Buffer points to.
The WDF_MEMORY_DESCRIPTOR_INIT_BUFFER function zeros the specified WDF_MEMORY_DESCRIPTOR structure and sets the structure's Type member to WdfMemoryDescriptorTypeBuffer. Then it sets the structure's u.BufferType.Buffer and u.BufferType.Length members to the values that the Buffer and BufferLength parameters specify, respectively.
For a code example that uses WDF_MEMORY_DESCRIPTOR_INIT_BUFFER, see WdfIoTargetSendIoctlSynchronously.
WDF_MEMORY_DESCRIPTOR_INIT_HANDLE
WDF_MEMORY_DESCRIPTOR_INIT_MDL