WriteStructToUserHelper - NtDoc

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

VOID WriteStructToUserHelper(
  volatile VOID *Destination,
  const VOID    *Source,
  SIZE_T        Size
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-usermode_accessors-writestructtouserhelper)

Description

The WriteStructToUserHelper function is a helper function that safely writes a structure of a specified size to user-mode memory.

Parameters

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.

Remarks

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.

See also

WriteStructToUser

WriteStructToUserAligned