From 61efbfa491bf1a2ddcba736ad829e24cb131a912 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Thu, 26 Feb 2009 17:46:41 +0000 Subject: [PATCH] - Implement CMP_RegisterNotification stubs - Fixes audiosrv crash svn path=/trunk/; revision=39774 --- reactos/dll/win32/setupapi/setupapi.spec | 2 +- reactos/dll/win32/setupapi/stubs.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/setupapi/setupapi.spec b/reactos/dll/win32/setupapi/setupapi.spec index 56518244912..793be954721 100644 --- a/reactos/dll/win32/setupapi/setupapi.spec +++ b/reactos/dll/win32/setupapi/setupapi.spec @@ -2,7 +2,7 @@ @ stub CMP_GetBlockedDriverInfo @ stub CMP_GetServerSideDeviceInstallFlags @ stdcall CMP_Init_Detection(long) -@ stub CMP_RegisterNotification +@ stdcall CMP_RegisterNotification( ptr ptr long ptr) @ stdcall CMP_Report_LogOn(long long) @ stub CMP_UnregisterNotification @ stdcall CMP_WaitNoPendingInstallEvents(long) diff --git a/reactos/dll/win32/setupapi/stubs.c b/reactos/dll/win32/setupapi/stubs.c index cf7e3d57823..967ede4f8a3 100644 --- a/reactos/dll/win32/setupapi/stubs.c +++ b/reactos/dll/win32/setupapi/stubs.c @@ -184,3 +184,23 @@ SetupDiUnremoveDevice( SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return FALSE; } + + +/*********************************************************************** + * CMP_RegisterNotification(SETUPAPI.@) + */ +CONFIGRET +WINAPI +CMP_RegisterNotification( + IN HANDLE hRecipient, + IN LPVOID lpvNotificationFilter, + IN DWORD dwFlags, + OUT PULONG pluhDevNotify) +{ + FIXME ("Stub %p %p %lu %p\n", hRecipient, lpvNotificationFilter, dwFlags, pluhDevNotify); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return CR_FAILURE; +} + + +