WDF_MEMORY_DESCRIPTOR_INIT_BUFFER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfmemory-wdf_memory_descriptor_init_buffer)

WDF_MEMORY_DESCRIPTOR_INIT_BUFFER function

Description

[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.

Parameters

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.

Remarks

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.

Examples

For a code example that uses WDF_MEMORY_DESCRIPTOR_INIT_BUFFER, see WdfIoTargetSendIoctlSynchronously.

See also

WDF_MEMORY_DESCRIPTOR

WDF_MEMORY_DESCRIPTOR_INIT_HANDLE

WDF_MEMORY_DESCRIPTOR_INIT_MDL