mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[UMPNPMGR][SETUPAPI] PNP_RegisterNotification() has got 9 parameters.
This commit is contained in:
parent
18e835b605
commit
7eb6e42626
3 changed files with 26 additions and 11 deletions
|
@ -3530,20 +3530,30 @@ DWORD
|
|||
WINAPI
|
||||
PNP_RegisterNotification(
|
||||
handle_t hBinding,
|
||||
DWORD dwUnknown2,
|
||||
DWORD dwUnknown3,
|
||||
DWORD ulUnknown2,
|
||||
DWORD ulUnknown3,
|
||||
BYTE *pNotificationFilter,
|
||||
DWORD ulNotificationFilterSize,
|
||||
DWORD ulFlags,
|
||||
DWORD *pulNotify)
|
||||
DWORD *pulNotify,
|
||||
DWORD ulUnknown8,
|
||||
DWORD *pulUnknown9)
|
||||
{
|
||||
#if 0
|
||||
PNOTIFY_DATA pNotifyData;
|
||||
#endif
|
||||
|
||||
DPRINT1("PNP_RegisterNotification(%p %lx %lx %p %lu 0x%lx %p)\n",
|
||||
hBinding, dwUnknown2, dwUnknown3, pNotificationFilter,
|
||||
ulNotificationFilterSize, ulFlags, pulNotify);
|
||||
DPRINT1("PNP_RegisterNotification(%p %lx %lx %p %lu 0x%lx %p %lx %p)\n",
|
||||
hBinding, ulUnknown2, ulUnknown3, pNotificationFilter,
|
||||
ulNotificationFilterSize, ulFlags, pulNotify, ulUnknown8, pulUnknown9);
|
||||
|
||||
if (pNotificationFilter == NULL ||
|
||||
pulNotify == NULL ||
|
||||
pulUnknown9 == NULL)
|
||||
return CR_INVALID_POINTER;
|
||||
|
||||
if (ulFlags & ~0x7)
|
||||
return CR_INVALID_FLAG;
|
||||
|
||||
#if 0
|
||||
pNotifyData = RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NOTIFY_DATA));
|
||||
|
|
|
@ -593,9 +593,10 @@ CMP_RegisterNotification(
|
|||
{
|
||||
RPC_BINDING_HANDLE BindingHandle = NULL;
|
||||
PNOTIFY_DATA pNotifyData = NULL;
|
||||
DWORD ulUnknown9 = 0;
|
||||
CONFIGRET ret = CR_SUCCESS;
|
||||
|
||||
TRACE("CMP_RegisterNotification(%p %p %lu %p)\n",
|
||||
FIXME("CMP_RegisterNotification(%p %p %lu %p)\n",
|
||||
hRecipient, lpvNotificationFilter, ulFlags, phDevNotify);
|
||||
|
||||
if ((hRecipient == NULL) ||
|
||||
|
@ -639,7 +640,9 @@ CMP_RegisterNotification(
|
|||
(BYTE*)lpvNotificationFilter,
|
||||
((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size,
|
||||
ulFlags,
|
||||
&pNotifyData->ulNotifyData);
|
||||
&pNotifyData->ulNotifyData,
|
||||
0,
|
||||
&ulUnknown9);
|
||||
}
|
||||
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
|
|
@ -875,12 +875,14 @@ interface pnp
|
|||
__stdcall
|
||||
PNP_RegisterNotification(
|
||||
[in] handle_t hBinding,
|
||||
[in] DWORD dwUnknown2,
|
||||
[in] DWORD dwUnknown3,
|
||||
[in] DWORD ulUnknown2,
|
||||
[in] DWORD ulUnknown3,
|
||||
[in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter,
|
||||
[in] DWORD ulNotificationFilterSize,
|
||||
[in] DWORD ulFlags,
|
||||
[out] DWORD *pulNotifyData);
|
||||
[out] DWORD *pulNotifyData,
|
||||
[in] DWORD ulUnknown8,
|
||||
[out] DWORD *pulUnknown9);
|
||||
|
||||
/* Function 60 */
|
||||
DWORD
|
||||
|
|
Loading…
Reference in a new issue