- Sync up Mm interface with WinLdr branch (introduce the concept of a memory type...
[reactos.git] / reactos / subsystems / win32 / win32k / misc / copy.c
1 #include "w32k.h"
2
3 NTSTATUS _MmCopyFromCaller( PVOID Target, PVOID Source, UINT Bytes ) {
4 NTSTATUS Status = STATUS_SUCCESS;
5
6 _SEH_TRY {
7 //ProbeForRead(Source,Bytes,1);
8 RtlCopyMemory(Target,Source,Bytes);
9 } _SEH_HANDLE {
10 Status = _SEH_GetExceptionCode();
11 } _SEH_END;
12
13 return Status;
14 }
15
16 NTSTATUS _MmCopyToCaller( PVOID Target, PVOID Source, UINT Bytes ) {
17 NTSTATUS Status = STATUS_SUCCESS;
18
19 _SEH_TRY {
20 //ProbeForWrite(Target,Bytes,1);
21 RtlCopyMemory(Target,Source,Bytes);
22 } _SEH_HANDLE {
23 Status = _SEH_GetExceptionCode();
24 } _SEH_END;
25
26 return Status;
27 }