https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5fc37876d8e0739a4423b…
commit 5fc37876d8e0739a4423b7612521b007e65dd575
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Oct 28 10:26:37 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Mon Oct 29 23:56:39 2018 +0100
[FLTMGR] Stub FltCreateFileEx()
---
drivers/filters/fltmgr/Object.c | 36 +++++++++++++++++++++++++++++++++++-
drivers/filters/fltmgr/fltmgr.spec | 2 ++
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/drivers/filters/fltmgr/Object.c b/drivers/filters/fltmgr/Object.c
index 9597738a3d..413b85fce3 100644
--- a/drivers/filters/fltmgr/Object.c
+++ b/drivers/filters/fltmgr/Object.c
@@ -134,6 +134,40 @@ FltReleasePushLock(_Inout_ _Requires_lock_held_(*_Curr_)
_Releases_lock_(*_Curr_
KeLeaveCriticalRegion();
}
+_IRQL_requires_max_(PASSIVE_LEVEL)
+NTSTATUS
+FLTAPI
+FltClose(_In_ HANDLE FileHandle)
+{
+ PAGED_CODE();
+
+ return ZwClose(FileHandle);
+}
+
+_Must_inspect_result_
+_IRQL_requires_max_(PASSIVE_LEVEL)
+NTSTATUS
+FLTAPI
+FltCreateFileEx(_In_ PFLT_FILTER Filter,
+ _In_opt_ PFLT_INSTANCE Instance,
+ _Out_ PHANDLE FileHandle,
+ _Outptr_opt_ PFILE_OBJECT *FileObject,
+ _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)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
/* INTERNAL FUNCTIONS ******************************************************/
@@ -269,4 +303,4 @@ FltpObjectPointerDereference(_In_ PFLT_OBJECT Object)
// Cleanup
FLT_ASSERT(FALSE);
}
-}
\ No newline at end of file
+}
diff --git a/drivers/filters/fltmgr/fltmgr.spec b/drivers/filters/fltmgr/fltmgr.spec
index af40f77ff4..51ad071a44 100644
--- a/drivers/filters/fltmgr/fltmgr.spec
+++ b/drivers/filters/fltmgr/fltmgr.spec
@@ -13,4 +13,6 @@
@ stdcall FltEnumerateVolumes(ptr ptr long ptr)
@ stdcall FltGetFileNameInformationUnsafe(ptr ptr long ptr)
@ stdcall FltCloseClientPort(ptr ptr)
+ @ stdcall FltClose(ptr)
+ @ stdcall FltCreateFileEx(ptr ptr ptr ptr long ptr ptr ptr long long long long ptr long
long)