Edit

Share via


WriteStructToUserHelper function (usermode_accessors.h)

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

Syntax

void WriteStructToUserHelper(
  volatile VOID *Destination,
  const VOID    *Source,
  SIZE_T        Size
);

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.

Return value

None

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.

Requirements

Requirement Value
Minimum supported client See Remarks
Header usermode_accessors.h
Library umaccess.lib
IRQL Less than or equal to APC_LEVEL

See also

WriteStructToUser

WriteStructToUserAligned