WDFMEMORY_OFFSET - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfmemory.h

typedef struct _WDFMEMORY_OFFSET {
  size_t BufferOffset;
  size_t BufferLength;
} WDFMEMORY_OFFSET, *PWDFMEMORY_OFFSET;

View the official Windows Driver Kit DDI reference
// wudfddi_types.h

typedef struct _WDFMEMORY_OFFSET {
  ULONG_PTR BufferOffset;
  ULONG_PTR BufferLength;
} WDFMEMORY_OFFSET, *PWDFMEMORY_OFFSET;

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-wdfmemory-_wdfmemory_offset)

_WDFMEMORY_OFFSET structure (wdfmemory.h)

Description

[Applies to KMDF and UMDF]

The WDFMEMORY_OFFSET structure identifies a subsection of a memory object's buffer.

Members

BufferOffset

A byte offset from the beginning of the memory object's buffer. This offset identifies the location of the buffer's subsection. A value of zero represents the beginning of the buffer.

BufferLength

The length, in bytes, of the buffer's subsection. A value of zero represents the entire buffer.

Remarks

The WDFMEMORY_OFFSET structure is used as a member of the WDF_MEMORY_DESCRIPTOR structure and as an input parameter to various I/O target object methods.

See also

WDF_MEMORY_DESCRIPTOR


Windows Driver Kit DDI reference (ns-wudfddi_types-_wdfmemory_offset)

_WDFMEMORY_OFFSET structure (wudfddi_types.h)

Description

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The WDFMEMORY_OFFSET structure describes the location and size of information that is accessed within a memory block.

Members

BufferOffset

The offset, in bytes, into the memory block where information is first accessed.

BufferLength

The size, in bytes, of the information that is accessed in the memory block.

Remarks

A UMDF driver supplies a pointer to a WDFMEMORY_OFFSET structure to the IWDFMemory::CopyFromMemory method to describe information to copy from a memory block.

See also

IWDFMemory::CopyFromMemory