The ReadStructFromUserHelper function is a helper function that safely reads a structure of a specified size from user-mode memory.
Syntax
VOID ReadStructFromUserHelper(
VOID *Destination,
const volatile VOID *Source,
SIZE_T Size
);
Parameters
Destination
[out] 사용자 모드 메모리에서 읽은 데이터를 수신하는 버퍼에 대한 포인터입니다.
Source
[in] 데이터를 읽을 사용자 모드 메모리 위치에 대한 포인터입니다.
Size
[in] 읽을 데이터의 크기(바이트)입니다.
Return value
None
Remarks
이 함수는 사용자 모드 접근자 함수에서 내부적으로 사용하는 도우미 함수입니다. 구조 크기에 따라 사용자 모드 메모리에서 구조체의 최적화된 판독값을 제공합니다.
Requirements
| Requirement | Value |
|---|---|
| 지원되는 최소 클라이언트 | See Remarks |
| Header | usermode_accessors.h |
| Library | umaccess.lib |
| IRQL | APC_LEVEL 작거나 같음 |