WriteStructToModeHelper - NtDoc

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

VOID WriteStructToModeHelper(
  VOID            *Destination,
  const VOID      *Source,
  SIZE_T          Size,
  KPROCESSOR_MODE Mode
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

The WriteStructToModeHelper function is a helper function that safely writes a structure of a specified size to memory based on the specified processor mode.

Parameters

Destination

[out] A pointer to the 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.

Mode

[in] The processor mode that determines how the memory access is performed.

Remarks

This function is a helper function used internally by the usermode accessor functions. It provides mode-aware writing of structures to memory, with extra safety checks when accessing user-mode memory.

See also

WriteStructToMode

WriteStructToModeAligned