ntoskrnl.exe: Add stub for ExRegisterCallback() function.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-05-29 10:53:06 +03:00 committed by Alexandre Julliard
parent 1cad86fced
commit 7bc99ae125
3 changed files with 12 additions and 1 deletions

View File

@ -2062,6 +2062,14 @@ NTSTATUS WINAPI ExCreateCallback(PCALLBACK_OBJECT *obj, POBJECT_ATTRIBUTES attr,
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
void * WINAPI ExRegisterCallback(PCALLBACK_OBJECT callback_object,
PCALLBACK_FUNCTION callback_function, void *callback_context)
{
FIXME("callback_object %p, callback_function %p, callback_context %p stub.\n",
callback_object, callback_function, callback_context);
return (void *)0xdeadbeef;
}
/*********************************************************************** /***********************************************************************
* ExFreePool (NTOSKRNL.EXE.@) * ExFreePool (NTOSKRNL.EXE.@)
@ -3046,6 +3054,7 @@ PVOID WINAPI MmGetSystemRoutineAddress(PUNICODE_STRING SystemRoutineName)
if (!pFunc) if (!pFunc)
{ {
hMod = GetModuleHandleW( halW ); hMod = GetModuleHandleW( halW );
if (hMod) pFunc = GetProcAddress( hMod, routineNameA.Buffer ); if (hMod) pFunc = GetProcAddress( hMod, routineNameA.Buffer );
} }
RtlFreeAnsiString( &routineNameA ); RtlFreeAnsiString( &routineNameA );

View File

@ -183,7 +183,7 @@
@ stub ExRaiseException @ stub ExRaiseException
@ stub ExRaiseHardError @ stub ExRaiseHardError
@ stub ExRaiseStatus @ stub ExRaiseStatus
@ stub ExRegisterCallback @ stdcall ExRegisterCallback(ptr ptr ptr)
@ stub ExReinitializeResourceLite @ stub ExReinitializeResourceLite
@ stdcall ExReleaseResourceForThreadLite(ptr long) @ stdcall ExReleaseResourceForThreadLite(ptr long)
@ extern ExSemaphoreObjectType @ extern ExSemaphoreObjectType

View File

@ -1356,6 +1356,7 @@ typedef void * (NTAPI *PALLOCATE_FUNCTION)(POOL_TYPE, SIZE_T, ULONG);
typedef void * (NTAPI *PALLOCATE_FUNCTION_EX)(POOL_TYPE, SIZE_T, ULONG, PLOOKASIDE_LIST_EX); typedef void * (NTAPI *PALLOCATE_FUNCTION_EX)(POOL_TYPE, SIZE_T, ULONG, PLOOKASIDE_LIST_EX);
typedef void (NTAPI *PFREE_FUNCTION)(void *); typedef void (NTAPI *PFREE_FUNCTION)(void *);
typedef void (NTAPI *PFREE_FUNCTION_EX)(void *, PLOOKASIDE_LIST_EX); typedef void (NTAPI *PFREE_FUNCTION_EX)(void *, PLOOKASIDE_LIST_EX);
typedef void (NTAPI *PCALLBACK_FUNCTION)(void *, void *, void *);
#ifdef _WIN64 #ifdef _WIN64
#define LOOKASIDE_ALIGN DECLSPEC_CACHEALIGN #define LOOKASIDE_ALIGN DECLSPEC_CACHEALIGN
@ -1627,6 +1628,7 @@ PSLIST_ENTRY WINAPI ExInterlockedPushEntrySList(PSLIST_HEADER,PSLIST_ENTRY,PKSPI
LIST_ENTRY * WINAPI ExInterlockedRemoveHeadList(LIST_ENTRY*,KSPIN_LOCK*); LIST_ENTRY * WINAPI ExInterlockedRemoveHeadList(LIST_ENTRY*,KSPIN_LOCK*);
BOOLEAN WINAPI ExIsResourceAcquiredExclusiveLite(ERESOURCE*); BOOLEAN WINAPI ExIsResourceAcquiredExclusiveLite(ERESOURCE*);
ULONG WINAPI ExIsResourceAcquiredSharedLite(ERESOURCE*); ULONG WINAPI ExIsResourceAcquiredSharedLite(ERESOURCE*);
void * WINAPI ExRegisterCallback(PCALLBACK_OBJECT,PCALLBACK_FUNCTION,void*);
void FASTCALL ExReleaseFastMutexUnsafe(PFAST_MUTEX); void FASTCALL ExReleaseFastMutexUnsafe(PFAST_MUTEX);
void WINAPI ExReleaseResourceForThreadLite(ERESOURCE*,ERESOURCE_THREAD); void WINAPI ExReleaseResourceForThreadLite(ERESOURCE*,ERESOURCE_THREAD);
ULONG WINAPI ExSetTimerResolution(ULONG,BOOLEAN); ULONG WINAPI ExSetTimerResolution(ULONG,BOOLEAN);