다음을 통해 공유


WriteStructToModeHelper 함수(usermode_accessors.h)

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(
  volatile VOID   *Destination,
  const VOID      *Source,
  SIZE_T          Size,
  KPROCESSOR_MODE Mode
);

Parameters

Destination

[out] 데이터를 쓸 메모리 위치에 대한 포인터입니다.

Source

[in] 대상 메모리 위치에 쓸 데이터에 대한 포인터입니다.

Size

[in] 쓸 데이터의 크기(바이트)입니다.

Mode

[in] 메모리 액세스가 수행되는 방법을 결정하는 프로세서 모드입니다.

Return value

None

Remarks

이 함수는 usermode 접근자 함수에서 내부적으로 사용하는 도우미 함수입니다. 사용자 모드 메모리에 액세스할 때 추가 안전 검사와 함께 메모리에 구조를 모드 인식 쓰기를 제공합니다.

Requirements

Requirement Value
지원되는 최소 클라이언트 See Remarks
Header usermode_accessors.h
Library umaccess.lib
IRQL APC_LEVEL 작거나 같음

See also

WriteStructToMode

WriteStructToModeAligned