18 ULONG MdlSize = 2*4096+184;
25 "IoAllocateMdl should fail allocation of 2Gb or more, but got Mdl=0x%X\n",
34 ok(
Mdl !=
NULL,
"Mdl allocation failed\n");
36 ok(
Mdl->Next ==
NULL,
"Mdl->Next should be NULL, but is 0x%X\n",
38 ok(
Mdl->ByteCount == MdlSize,
39 "Mdl->ByteCount should be equal to MdlSize, but is 0x%X\n",
47 ok(
Mdl ==
NULL,
"Mdl allocation for %lu bytes succeeded\n", TooLargeMdlSize);
51 ok(
Mdl ==
NULL,
"Mdl allocation for %lu bytes succeeded\n", TooLargeMdlSize -
PAGE_SIZE + 1);
59 ok(
Mdl !=
NULL,
"Mdl allocation for %lu bytes failed\n", TooLargeMdlSize / 2);
64 ok(
Irp !=
NULL,
"IRP allocation failed\n");
66 ok(
Mdl !=
NULL,
"Mdl allocation failed\n");
67 ok(
Irp->MdlAddress ==
Mdl,
"Irp->MdlAddress should be 0x%X, but is 0x%X\n",
#define ExAllocatePool(type, size)
unsigned __int3264 UINT_PTR
PIRP NTAPI IoAllocateIrp(IN CCHAR StackSize, IN BOOLEAN ChargeQuota)
VOID NTAPI IoFreeIrp(IN PIRP Irp)
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl