[USER32] Fix GetWindowTextLength() blocking call using the same technique as in GetWi...
[reactos.git] / win32ss / user / ntuser / mmcopy.h
1 #pragma once
2
3
4 _IRQL_requires_max_(APC_LEVEL)
5 NTSTATUS
6 _MmCopyFromCaller(
7 _Out_writes_bytes_all_(Bytes) PVOID Target,
8 _In_reads_bytes_(Bytes) PVOID Source,
9 _In_ UINT Bytes);
10
11 _IRQL_requires_max_(APC_LEVEL)
12 NTSTATUS
13 _MmCopyToCaller(
14 _Out_writes_bytes_all_(Bytes) PVOID Target,
15 _In_reads_bytes_(Bytes) PVOID Source,
16 _In_ UINT Bytes);
17
18 #define MmCopyFromCaller(x,y,z) _MmCopyFromCaller((PCHAR)(x),(PCHAR)(y),(UINT)(z))
19 #define MmCopyToCaller(x,y,z) _MmCopyToCaller((PCHAR)(x),(PCHAR)(y),(UINT)(z))