60{
72
74 trace(
"Max MDL data size: 0x%lx bytes\n", LargeMdlMaxDataSize);
75
77
82 0,
87 {
88 skip(
"Failed to allocate memory, status %lx\n",
Status);
89 return;
90 }
91
102 0,
103 0,
108 0);
110
111
122
123
130 LargeMdlMaxDataSize,
134
135
136
147
148
155 LargeMdlMaxDataSize + 1,
159
163 &DispositionInfo,
164 sizeof(DispositionInfo),
169
175 0,
176 0,
180 0);
182
183
190 LargeMdlMaxDataSize,
194
201 LargeMdlMaxDataSize + 1,
205
212 TooLargeDataSize,
216
220 &DispositionInfo,
221 sizeof(DispositionInfo),
226
232
233
234
237
240 0,
245 {
246 skip(
"Failed to allocate memory, status %lx\n",
Status);
247 return;
248 }
249
255 0,
256 0,
262 0);
264
265
273 4,
277
278
290
291
303
307 &DispositionInfo,
308 sizeof(DispositionInfo),
313
319}
static ULONG SizeOfSector(VOID)
static ULONG SizeOfMdl(VOID)
#define ok_hex(expression, result)
#define FILE_NON_DIRECTORY_FILE
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
IN PDCB IN PCCB IN VBO IN OUT PULONG OUT PDIRENT OUT PBCB OUT PVBO ByteOffset
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
@ FileDispositionInformation
#define FILE_SYNCHRONOUS_IO_NONALERT
#define FILE_NO_INTERMEDIATE_BUFFERING
#define FILE_WRITE_THROUGH
#define OBJ_CASE_INSENSITIVE
#define InitializeObjectAttributes(p, n, a, r, s)
__in UCHAR __in POWER_STATE __in_opt PVOID __in PIO_STATUS_BLOCK IoStatus
NTSYSAPI NTSTATUS NTAPI NtWriteFile(IN HANDLE hFile, IN HANDLE hEvent OPTIONAL, IN PIO_APC_ROUTINE IoApcRoutine OPTIONAL, IN PVOID IoApcContext OPTIONAL, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN PVOID WriteBuffer, IN ULONG WriteBufferLength, IN PLARGE_INTEGER FileOffset OPTIONAL, IN PULONG LockOperationKey OPTIONAL)
NTSYSAPI NTSTATUS NTAPI NtSetInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
NTSTATUS NTAPI NtCreateFile(OUT PHANDLE FileHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK IoStatusBlock, IN PLARGE_INTEGER AllocationSize OPTIONAL, IN ULONG FileAttributes, IN ULONG ShareAccess, IN ULONG CreateDisposition, IN ULONG CreateOptions, IN PVOID EaBuffer OPTIONAL, IN ULONG EaLength)
NTSTATUS NTAPI NtFreeVirtualMemory(IN HANDLE ProcessHandle, IN PVOID *UBaseAddress, IN PSIZE_T URegionSize, IN ULONG FreeType)
NTSTATUS NTAPI NtAllocateVirtualMemory(IN HANDLE ProcessHandle, IN OUT PVOID *UBaseAddress, IN ULONG_PTR ZeroBits, IN OUT PSIZE_T URegionSize, IN ULONG AllocationType, IN ULONG Protect)
#define RTL_CONSTANT_STRING(s)
#define STATUS_INVALID_PARAMETER
#define STATUS_INSUFFICIENT_RESOURCES
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize