15{
18
19
22
24 {
26
27 ok(6 == iorp->Type,
"Irp type should be 6, but got %d\n", iorp->Type);
28 ok(iorp->Size ==
size,
"Irp size should be %d, but got %d\n",
30 ok(5 == iorp->StackCount,
"Irp StackCount should be 5, but got %d\n",
31 iorp->StackCount);
32 ok(6 == iorp->CurrentLocation,
"Irp CurrentLocation should be 6, but got %d\n",
33 iorp->CurrentLocation);
34 ok(
IsListEmpty(&iorp->ThreadListEntry),
"IRP thread list is not empty\n");
36 iorp->Tail.Overlay.CurrentStackLocation,
37 "CurrentStackLocation mismatch\n");
38
40 }
41
42
45
47 {
48 ok(6 == iorp->Type,
"Irp type should be 6, but got %d\n", iorp->Type);
50 "Irp size should be more or equal to %d, but got %d\n",
52 ok(2 == iorp->StackCount,
"Irp StackCount should be 2, but got %d\n",
53 iorp->StackCount);
54 ok(3 == iorp->CurrentLocation,
"Irp CurrentLocation should be 3, but got %d\n",
55 iorp->CurrentLocation);
56 ok(
IsListEmpty(&iorp->ThreadListEntry),
"IRP thread list is not empty\n");
58 iorp->Tail.Overlay.CurrentStackLocation,
59 "CurrentStackLocation mismatch\n");
61 "IRP Allocation flags lack fixed size attribute\n");
63 "IRP Allocation flags should not have lookaside allocation\n");
64
66 }
67
68
71
73 {
74 ok(6 == iorp->Type,
"Irp type should be 6, but got %d\n", iorp->Type);
76 "Irp size should be more or equal to %d, but got %d\n",
78 ok(2 == iorp->StackCount,
"Irp StackCount should be 2, but got %d\n",
79 iorp->StackCount);
80 ok(3 == iorp->CurrentLocation,
"Irp CurrentLocation should be 3, but got %d\n",
81 iorp->CurrentLocation);
82 ok(
IsListEmpty(&iorp->ThreadListEntry),
"IRP thread list is not empty\n");
84 iorp->Tail.Overlay.CurrentStackLocation,
85 "CurrentStackLocation mismatch\n");
87 "IRP Allocation flags lack fixed size attribute\n");
89 "IRP Allocation flags lack lookaside allocation\n");
90
92 }
93}
#define IsListEmpty(ListHead)
#define ExAllocatePool(type, size)
VOID NTAPI IoInitializeIrp(IN PIRP Irp, IN USHORT PacketSize, IN CCHAR StackSize)
PIRP NTAPI IoAllocateIrp(IN CCHAR StackSize, IN BOOLEAN ChargeQuota)
VOID NTAPI IoFreeIrp(IN PIRP Irp)
#define IRP_LOOKASIDE_ALLOCATION
#define IRP_ALLOCATED_FIXED_SIZE