fltmgr.sys: Implement FltGetRoutineAddress.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2018-04-04 23:18:22 +00:00 committed by Alexandre Julliard
parent ce2080ac60
commit a7b33a6a42
3 changed files with 17 additions and 1 deletions

View File

@ -79,7 +79,7 @@
@ stub FltGetLowerInstance
@ stub FltGetRequestorProcess
@ stub FltGetRequestorProcessId
@ stub FltGetRoutineAddress
@ stdcall FltGetRoutineAddress(str)
@ stub FltGetStreamContext
@ stub FltGetStreamHandleContext
@ stub FltGetSwappedBufferMdlAddress

View File

@ -64,3 +64,18 @@ void WINAPI FltUnregisterFilter( PFLT_FILTER filter )
{
FIXME( "(%p): stub\n", filter );
}
void* WINAPI FltGetRoutineAddress(LPCSTR name)
{
static const WCHAR fltmgrW[] = {'f','l','t','m','g','r','.','s','y','s',0};
HMODULE mod = GetModuleHandleW(fltmgrW);
void *func;
func = GetProcAddress(mod, name);
if (func)
TRACE( "%s -> %p\n", debugstr_a(name), func );
else
FIXME( "%s not found\n", debugstr_a(name) );
return func;
}

View File

@ -654,6 +654,7 @@ typedef struct _FLT_REGISTRATION
} FLT_REGISTRATION, *PFLT_REGISTRATION;
void* WINAPI FltGetRoutineAddress(LPCSTR name);
NTSTATUS WINAPI FltRegisterFilter(PDRIVER_OBJECT, const FLT_REGISTRATION *, PFLT_FILTER *);
NTSTATUS WINAPI FltStartFiltering(PFLT_FILTER);
void WINAPI FltUnregisterFilter(PFLT_FILTER);