3 _IRQL_requires_max_(APC_LEVEL
)
6 _Out_writes_bytes_all_(Bytes
) PVOID Target
,
7 _In_reads_bytes_(Bytes
) PVOID Source
,
13 ASSERT(ExGetPreviousMode() == UserMode
);
15 Status
= STATUS_SUCCESS
;
18 ProbeForRead(Source
, Bytes
, 1);
19 RtlCopyMemory(Target
, Source
, Bytes
);
21 _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER
)
23 Status
= _SEH2_GetExceptionCode();
30 _IRQL_requires_max_(APC_LEVEL
)
33 _Out_writes_bytes_all_(Bytes
) PVOID Target
,
34 _In_reads_bytes_(Bytes
) PVOID Source
,
40 ASSERT(ExGetPreviousMode() == UserMode
);
42 Status
= STATUS_SUCCESS
;
45 ProbeForWrite(Target
, Bytes
, 1);
46 RtlCopyMemory(Target
, Source
, Bytes
);
48 _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER
)
50 Status
= _SEH2_GetExceptionCode();