Commit a7b33a6a authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

fltmgr.sys: Implement FltGetRoutineAddress.

parent ce2080ac
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
@ stub FltGetLowerInstance @ stub FltGetLowerInstance
@ stub FltGetRequestorProcess @ stub FltGetRequestorProcess
@ stub FltGetRequestorProcessId @ stub FltGetRequestorProcessId
@ stub FltGetRoutineAddress @ stdcall FltGetRoutineAddress(str)
@ stub FltGetStreamContext @ stub FltGetStreamContext
@ stub FltGetStreamHandleContext @ stub FltGetStreamHandleContext
@ stub FltGetSwappedBufferMdlAddress @ stub FltGetSwappedBufferMdlAddress
......
...@@ -64,3 +64,18 @@ void WINAPI FltUnregisterFilter( PFLT_FILTER filter ) ...@@ -64,3 +64,18 @@ void WINAPI FltUnregisterFilter( PFLT_FILTER filter )
{ {
FIXME( "(%p): stub\n", 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;
}
...@@ -654,6 +654,7 @@ typedef struct _FLT_REGISTRATION ...@@ -654,6 +654,7 @@ typedef struct _FLT_REGISTRATION
} FLT_REGISTRATION, *PFLT_REGISTRATION; } FLT_REGISTRATION, *PFLT_REGISTRATION;
void* WINAPI FltGetRoutineAddress(LPCSTR name);
NTSTATUS WINAPI FltRegisterFilter(PDRIVER_OBJECT, const FLT_REGISTRATION *, PFLT_FILTER *); NTSTATUS WINAPI FltRegisterFilter(PDRIVER_OBJECT, const FLT_REGISTRATION *, PFLT_FILTER *);
NTSTATUS WINAPI FltStartFiltering(PFLT_FILTER); NTSTATUS WINAPI FltStartFiltering(PFLT_FILTER);
void WINAPI FltUnregisterFilter(PFLT_FILTER); void WINAPI FltUnregisterFilter(PFLT_FILTER);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment