// 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 referenceNo description available.
[Applies to KMDF and UMDF]
The WDFMEMORY_OFFSET structure identifies a subsection of a memory object's buffer.
BufferOffsetA 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.
BufferLengthThe length, in bytes, of the buffer's subsection. A value of zero represents the entire buffer.
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.
[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.
BufferOffsetThe offset, in bytes, into the memory block where information is first accessed.
BufferLengthThe size, in bytes, of the information that is accessed in the memory block.
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.