13#define TestProcessHandle (HANDLE) 1
14#define TestProcessObject (PVOID) 0x2
15#define TestBaseAddress (PVOID) 0x1000
16#define TestNumberOfBytesToLock 0x2000
17#define TestMdl (PMDL) 0xD0000000
25 _AssertEqualValue(
TestMdl, Block);
91 ULONG NumberOfBytesLocked;
112_Dispatcher(VirtualmemoryTest,
"Virtual memory")
static VOID FASTCALL MockObDereferenceObject(PVOID Object)
static VOID NTAPI MockMmProbeAndLockPages(PMDL Mdl, KPROCESSOR_MODE AccessMode, LOCK_OPERATION Operation)
#define TestProcessObject
static VOID NTAPI MockExFreePool(PVOID Block)
#define TestProcessHandle
#define TestNumberOfBytesToLock
static BOOLEAN MockExFreePoolCalled
static BOOLEAN MockMmProbeAndLockPagesCalled
static PMDL NTAPI MockMmCreateMdl(PMDL Mdl, PVOID Base, ULONG Length)
static NTSTATUS NTAPI MockObReferenceObjectByHandle(HANDLE Handle, ACCESS_MASK DesiredAccess, POBJECT_TYPE ObjectType, KPROCESSOR_MODE AccessMode, PVOID *Object, POBJECT_HANDLE_INFORMATION HandleInformation)
static BOOLEAN MockMmCreateMdlCalled
static BOOLEAN MockObReferenceObjectByHandleCalled
static BOOLEAN MockObDereferenceObjectCalled
_In_ ULONG _In_ ULONG _In_ ULONG Length
static NTSTATUS MiLockVirtualMemory(IN OUT PVOID *BaseAddress, IN OUT PSIZE_T RegionSize, IN ULONG MapType)
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
enum _LOCK_OPERATION LOCK_OPERATION
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
_In_ ACCESS_MASK _In_opt_ POBJECT_TYPE _In_ KPROCESSOR_MODE _Out_ PVOID _Out_opt_ POBJECT_HANDLE_INFORMATION HandleInformation