[FLTMGR] Implement FltCreateFile()
authorPierre Schweitzer <pierre@reactos.org>
Sun, 28 Oct 2018 09:31:53 +0000 (10:31 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 29 Oct 2018 22:56:39 +0000 (23:56 +0100)
drivers/filters/fltmgr/Object.c
drivers/filters/fltmgr/fltmgr.spec

index 413b85f..8173f63 100644 (file)
@@ -168,6 +168,42 @@ FltCreateFileEx(_In_ PFLT_FILTER Filter,
     return STATUS_NOT_IMPLEMENTED;
 }
 
+_Must_inspect_result_
+_IRQL_requires_max_(PASSIVE_LEVEL)
+NTSTATUS
+FLTAPI
+FltCreateFile(_In_ PFLT_FILTER Filter,
+              _In_opt_ PFLT_INSTANCE Instance,
+              _Out_ PHANDLE FileHandle,
+              _In_ ACCESS_MASK DesiredAccess,
+              _In_ POBJECT_ATTRIBUTES ObjectAttributes,
+              _Out_ PIO_STATUS_BLOCK IoStatusBlock,
+              _In_opt_ PLARGE_INTEGER AllocationSize,
+              _In_ ULONG FileAttributes,
+              _In_ ULONG ShareAccess,
+              _In_ ULONG CreateDisposition,
+              _In_ ULONG CreateOptions,
+              _In_reads_bytes_opt_(EaLength)PVOID EaBuffer,
+              _In_ ULONG EaLength,
+              _In_ ULONG Flags)
+{
+    return FltCreateFileEx(Filter,
+                           Instance,
+                           FileHandle,
+                           NULL,
+                           DesiredAccess,
+                           ObjectAttributes,
+                           IoStatusBlock,
+                           AllocationSize,
+                           FileAttributes,
+                           ShareAccess,
+                           CreateDisposition,
+                           CreateOptions,
+                           EaBuffer,
+                           EaLength,
+                           Flags);
+}
+
 
 
 /* INTERNAL FUNCTIONS ******************************************************/
index 51ad071..3aae932 100644 (file)
@@ -15,4 +15,5 @@
  @ stdcall FltCloseClientPort(ptr ptr)
  @ stdcall FltClose(ptr)
  @ stdcall FltCreateFileEx(ptr ptr ptr ptr long ptr ptr ptr long long long long ptr long long)
+ @ stdcall FltCreateFile(ptr ptr ptr long ptr ptr ptr long long long long ptr long long)