The ReadStructFromModeHelper function is a helper function that safely reads a structure of a specified size from memory based on the specified processor mode.
Syntax
VOID ReadStructFromModeHelper(
VOID *Destination,
const VOID *Source,
SIZE_T Size,
KPROCESSOR_MODE Mode
);
Parameters
Destination
[out]指向从内存中读取数据的缓冲区的指针。
Source
[in]指向从中读取数据的内存位置的指针。
Size
[in]要读取的数据的大小(以字节为单位)。
Mode
[in]确定内存访问的执行方式的处理器模式。
Return value
None
Remarks
此函数是用户模式访问器函数在内部使用的帮助程序函数。 它提供对内存中结构的模式感知读取,访问用户模式内存时会进行额外的安全检查。
Requirements
| Requirement | Value |
|---|---|
| 最低支持的客户端 | See Remarks |
| Header | usermode_accessors.h |
| Library | umaccess.lib |
| IRQL | 小于或等于APC_LEVEL |