// usermode_accessors.h
VOID WriteStructToUserHelper(
volatile VOID *Destination,
const VOID *Source,
SIZE_T Size
);
View the official Windows Driver Kit DDI referenceNo description available.
The WriteStructToUserHelper function is a helper function that safely writes a structure of a specified size to user-mode memory.
Destination[out] A pointer to the user-mode memory location where the data will be written.
Source[in] A pointer to the data to write to the destination memory location.
Size[in] The size, in bytes, of the data to write.
This function is a helper function used internally by the user-mode accessor functions. It provides optimized writing of structures to user-mode memory based on the structure size.