[SETUPAPI][UMPNPMGR] PNP_UnregisterNotification: Add 2 unknown parameters
authorEric Kohl <eric.kohl@reactos.org>
Sun, 23 Jun 2019 19:45:54 +0000 (21:45 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 23 Jun 2019 19:45:54 +0000 (21:45 +0200)
base/services/umpnpmgr/rpcserver.c
dll/win32/setupapi/cfgmgr.c
sdk/include/reactos/idl/pnp.idl

index 422415f..9277aa9 100644 (file)
@@ -3530,6 +3530,8 @@ DWORD
 WINAPI
 PNP_RegisterNotification(
     handle_t hBinding,
+    DWORD dwUnknown2,
+    DWORD dwUnknown3,
     BYTE *pNotificationFilter,
     DWORD ulNotificationFilterSize,
     DWORD ulFlags,
@@ -3539,8 +3541,9 @@ PNP_RegisterNotification(
     PNOTIFY_DATA pNotifyData;
 #endif
 
-    DPRINT1("PNP_RegisterNotification(%p %p %lu 0x%lx %p)\n",
-           hBinding, pNotificationFilter, ulNotificationFilterSize, ulFlags, pulNotify);
+    DPRINT1("PNP_RegisterNotification(%p %lx %lx %p %lu 0x%lx %p)\n",
+           hBinding, dwUnknown2, dwUnknown3, pNotificationFilter,
+           ulNotificationFilterSize, ulFlags, pulNotify);
 
 #if 0
     pNotifyData = RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NOTIFY_DATA));
index 0037c1d..c0fe467 100644 (file)
@@ -634,6 +634,8 @@ CMP_RegisterNotification(
     RpcTryExcept
     {
         ret = PNP_RegisterNotification(BindingHandle,
+                                       0,
+                                       0,
                                        (BYTE*)lpvNotificationFilter,
                                        ((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size,
                                        ulFlags,
index a4d7b1c..bbcf1c1 100644 (file)
@@ -875,6 +875,8 @@ interface pnp
     __stdcall
     PNP_RegisterNotification(
         [in] handle_t hBinding,
+        [in] DWORD dwUnknown2,
+        [in] DWORD dwUnknown3,
         [in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter,
         [in] DWORD ulNotificationFilterSize,
         [in] DWORD ulFlags,