From ea943293c6185842b1350cc55c39df543fc64cf0 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Wed, 3 Oct 2012 08:55:06 +0200 Subject: [PATCH] ntoskrnl.exe: Add stub for ExCreateCallback. --- dlls/ntoskrnl.exe/ntoskrnl.c | 12 ++++++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- include/ddk/wdm.h | 9 +++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 632cea539c0..06993eeb39f 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -1104,6 +1104,18 @@ PVOID WINAPI ExAllocatePoolWithQuotaTag( POOL_TYPE type, SIZE_T size, ULONG tag } +/*********************************************************************** + * ExCreateCallback (NTOSKRNL.EXE.@) + */ +NTSTATUS WINAPI ExCreateCallback(PCALLBACK_OBJECT *obj, POBJECT_ATTRIBUTES attr, + BOOLEAN create, BOOLEAN allow_multiple) +{ + FIXME("(%p, %p, %u, %u): stub\n", obj, attr, create, allow_multiple); + + return STATUS_NOT_IMPLEMENTED; +} + + /*********************************************************************** * ExFreePool (NTOSKRNL.EXE.@) */ diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index b1698159c1c..4bce7ecd1d1 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -122,7 +122,7 @@ @ stdcall ExAllocatePoolWithTag(long long long) @ stub ExAllocatePoolWithTagPriority @ stub ExConvertExclusiveToSharedLite -@ stub ExCreateCallback +@ stdcall ExCreateCallback(ptr ptr long long) @ stub ExDeleteNPagedLookasideList @ stub ExDeletePagedLookasideList @ stub ExDeleteResourceLite diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index 183c9508c1d..bf9c15ed64e 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -1106,6 +1106,15 @@ typedef enum { IoModifyAccess } LOCK_OPERATION; +typedef struct _CALLBACK_OBJECT +{ + ULONG Signature; + KSPIN_LOCK Lock; + LIST_ENTRY RegisteredCallbacks; + BOOLEAN AllowMultipleCallbacks; + UCHAR reserved[3]; +} CALLBACK_OBJECT, *PCALLBACK_OBJECT; + NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle); #ifdef NONAMELESSUNION