다음을 통해 공유


WriteStructToUserHelper 함수(usermode_accessors.h)

The WriteStructToUserHelper function is a helper function that safely writes a structure of a specified size to user-mode memory.

Syntax

VOID WriteStructToUserHelper(
  volatile VOID *Destination,
  const 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 작거나 같음

See also

WriteStructToUser

WriteStructToUserAligned