2004-10-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
[reactos.git] / reactos / ntoskrnl / include / internal / test.h
1 #ifndef __NTOSKRNL_INCLUDE_INTERNAL_TEST_H
2 #define __NTOSKRNL_INCLUDE_INTERNAL_TEST_H
3
4 typedef VOID STDCALL
5 PExFreePool(PVOID Block);
6
7 typedef PMDL STDCALL
8 PMmCreateMdl(PMDL Mdl,
9 PVOID Base,
10 ULONG Length);
11
12 typedef VOID STDCALL
13 PMmProbeAndLockPages(PMDL Mdl,
14 KPROCESSOR_MODE AccessMode,
15 LOCK_OPERATION Operation);
16
17 typedef VOID FASTCALL
18 PObDereferenceObject(PVOID Object);
19
20 typedef NTSTATUS STDCALL
21 PObReferenceObjectByHandle(HANDLE Handle,
22 ACCESS_MASK DesiredAccess,
23 POBJECT_TYPE ObjectType,
24 KPROCESSOR_MODE AccessMode,
25 PVOID* Object,
26 POBJECT_HANDLE_INFORMATION HandleInformation);
27
28
29 NTSTATUS STDCALL
30 NtLockVirtualMemoryInternal(HANDLE ProcessHandle,
31 PVOID BaseAddress,
32 ULONG NumberOfBytesToLock,
33 PULONG NumberOfBytesLocked,
34 PObReferenceObjectByHandle pObReferenceObjectByHandle,
35 PMmCreateMdl pMmCreateMdl,
36 PObDereferenceObject pObDereferenceObject,
37 PMmProbeAndLockPages pMmProbeAndLockPages,
38 PExFreePool pExFreePool);
39
40 #endif /* __NTOSKRNL_INCLUDE_INTERNAL_TEST_H */