ReadStructFromUserHelper - NtDoc

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

VOID ReadStructFromUserHelper(
  VOID                *Destination,
  const volatile 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-readstructfromuserhelper)

Description

The ReadStructFromUserHelper function is a helper function that safely reads a structure of a specified size from user-mode memory.

Parameters

Destination

[out] A pointer to the buffer that receives the data read from user-mode memory.

Source

[in] A pointer to the user-mode memory location from which to read the data.

Size

[in] The size, in bytes, of the data to read.

Remarks

This function is a helper function used internally by the user-mode accessor functions. It provides optimized reading of structures from user-mode memory based on the structure size.

See also

ReadStructFromUser

ReadStructFromUserAligned