From 9a4d1d15cf76c4fd1aa861cd6868c48353e0345f Mon Sep 17 00:00:00 2001 From: Jim Cameron Date: Thu, 28 Aug 2008 23:31:58 +0100 Subject: [PATCH] ntoskrnl.exe: Add stub for IoRegisterDriverReinitialization(). --- dlls/ntoskrnl.exe/ntoskrnl.c | 11 ++++++++++- dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- include/ddk/ntddk.h | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index fca424deb5..beaa6ad5ce 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -31,7 +31,7 @@ #include "windef.h" #include "winternl.h" #include "excpt.h" -#include "ddk/wdm.h" +#include "ddk/ntddk.h" #include "wine/unicode.h" #include "wine/server.h" #include "wine/debug.h" @@ -470,6 +470,15 @@ PDEVICE_OBJECT WINAPI IoGetRelatedDeviceObject( PFILE_OBJECT obj ) } +/*********************************************************************** + * IoRegisterDriverReinitialization (NTOSKRNL.EXE.@) + */ +void WINAPI IoRegisterDriverReinitialization( PDRIVER_OBJECT obj, PDRIVER_REINITIALIZE reinit, PVOID context ) +{ + FIXME( "stub: %p %p %p\n", obj, reinit, context ); +} + + /*********************************************************************** * IofCompleteRequest (NTOSKRNL.EXE.@) */ diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index c37000495b..6fa960b9be 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -426,7 +426,7 @@ @ stub IoReadTransferCount @ stub IoRegisterBootDriverReinitialization @ stub IoRegisterDeviceInterface -@ stub IoRegisterDriverReinitialization +@ stdcall IoRegisterDriverReinitialization(ptr ptr ptr) @ stub IoRegisterFileSystem @ stub IoRegisterFsRegistrationChange @ stub IoRegisterLastChanceShutdownNotification diff --git a/include/ddk/ntddk.h b/include/ddk/ntddk.h index 47b6b1e32a..b93b51e8af 100644 --- a/include/ddk/ntddk.h +++ b/include/ddk/ntddk.h @@ -46,4 +46,8 @@ typedef enum _BUS_DATA_TYPE MaximumBusDataType } BUS_DATA_TYPE, *PBUS_DATA_TYPE; +typedef VOID (WINAPI *PDRIVER_REINITIALIZE)(PDRIVER_OBJECT,PVOID,ULONG); + +void WINAPI IoRegisterDriverReinitialization(PDRIVER_OBJECT,PDRIVER_REINITIALIZE,PVOID); + #endif