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 ReadStructFromUserHelper function is a helper function that safely reads a structure of a specified size from user-mode memory.
Syntax
FORCEINLINE
NTSTATUS
ReadStructFromUserHelper (
_Out_ PVOID Destination,
_In_ const PVOID Source,
_In_ SIZE_T Length
);
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.
Return value
None
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | See Remarks |
Header | usermode_accessors.h |
Library | umaccess.lib |
IRQL | Less than or equal to APC_LEVEL |