mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +00:00
[SETUPAPI][UMPNPMGR] Improve CMP_RegisterNotification/PNP_RegisterNotification
Pass the notification filter to PNP_RegisterNotification as a byte-pointer to the filter and the size of the filter.
This commit is contained in:
parent
8f04a09e74
commit
ca0406131c
3 changed files with 8 additions and 2 deletions
|
@ -3530,6 +3530,8 @@ DWORD
|
|||
WINAPI
|
||||
PNP_RegisterNotification(
|
||||
handle_t hBinding,
|
||||
BYTE *pNotificationFilter,
|
||||
DWORD ulNotificationFilterSize,
|
||||
DWORD ulFlags,
|
||||
DWORD *pulNotify)
|
||||
{
|
||||
|
@ -3537,8 +3539,8 @@ PNP_RegisterNotification(
|
|||
PNOTIFY_DATA pNotifyData;
|
||||
#endif
|
||||
|
||||
DPRINT1("PNP_RegisterNotification(%p 0x%lx %p)\n",
|
||||
hBinding, ulFlags, pulNotify);
|
||||
DPRINT1("PNP_RegisterNotification(%p %p %lu 0x%lx %p)\n",
|
||||
hBinding, pNotificationFilter, ulNotificationFilterSize, ulFlags, pulNotify);
|
||||
|
||||
#if 0
|
||||
pNotifyData = RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NOTIFY_DATA));
|
||||
|
|
|
@ -634,6 +634,8 @@ CMP_RegisterNotification(
|
|||
RpcTryExcept
|
||||
{
|
||||
ret = PNP_RegisterNotification(BindingHandle,
|
||||
(BYTE*)lpvNotificationFilter,
|
||||
((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size,
|
||||
ulFlags,
|
||||
&pNotifyData->ulNotifyData);
|
||||
}
|
||||
|
|
|
@ -875,6 +875,8 @@ interface pnp
|
|||
__stdcall
|
||||
PNP_RegisterNotification(
|
||||
[in] handle_t hBinding,
|
||||
[in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter,
|
||||
[in] DWORD ulNotificationFilterSize,
|
||||
[in] DWORD ulFlags,
|
||||
[out] DWORD *pulNotifyData);
|
||||
|
||||
|
|
Loading…
Reference in a new issue