Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The WriteStructToModeHelper function is a helper function that safely writes a structure of a specified size to memory based on the specified processor mode.
Syntax
void WriteStructToModeHelper(
VOID *Destination,
const VOID *Source,
SIZE_T Size,
KPROCESSOR_MODE 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.
Return value
None
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | See Remarks |
Header | usermode_accessors.h |
Library | umaccess.lib |
IRQL | Less than or equal to APC_LEVEL |