[SETUPAPI][UMPNPMGR] PNP_UnregisterNotification: Add 2 unknown parameters

This commit is contained in:
Eric Kohl 2019-06-23 21:45:54 +02:00
parent ca0406131c
commit a9c4c07955
3 changed files with 9 additions and 2 deletions

View file

@ -3530,6 +3530,8 @@ DWORD
WINAPI WINAPI
PNP_RegisterNotification( PNP_RegisterNotification(
handle_t hBinding, handle_t hBinding,
DWORD dwUnknown2,
DWORD dwUnknown3,
BYTE *pNotificationFilter, BYTE *pNotificationFilter,
DWORD ulNotificationFilterSize, DWORD ulNotificationFilterSize,
DWORD ulFlags, DWORD ulFlags,
@ -3539,8 +3541,9 @@ PNP_RegisterNotification(
PNOTIFY_DATA pNotifyData; PNOTIFY_DATA pNotifyData;
#endif #endif
DPRINT1("PNP_RegisterNotification(%p %p %lu 0x%lx %p)\n", DPRINT1("PNP_RegisterNotification(%p %lx %lx %p %lu 0x%lx %p)\n",
hBinding, pNotificationFilter, ulNotificationFilterSize, ulFlags, pulNotify); hBinding, dwUnknown2, dwUnknown3, pNotificationFilter,
ulNotificationFilterSize, ulFlags, pulNotify);
#if 0 #if 0
pNotifyData = RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NOTIFY_DATA)); pNotifyData = RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NOTIFY_DATA));

View file

@ -634,6 +634,8 @@ CMP_RegisterNotification(
RpcTryExcept RpcTryExcept
{ {
ret = PNP_RegisterNotification(BindingHandle, ret = PNP_RegisterNotification(BindingHandle,
0,
0,
(BYTE*)lpvNotificationFilter, (BYTE*)lpvNotificationFilter,
((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size, ((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size,
ulFlags, ulFlags,

View file

@ -875,6 +875,8 @@ interface pnp
__stdcall __stdcall
PNP_RegisterNotification( PNP_RegisterNotification(
[in] handle_t hBinding, [in] handle_t hBinding,
[in] DWORD dwUnknown2,
[in] DWORD dwUnknown3,
[in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter, [in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter,
[in] DWORD ulNotificationFilterSize, [in] DWORD ulNotificationFilterSize,
[in] DWORD ulFlags, [in] DWORD ulFlags,