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 volatile 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 작거나 같음 |