mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[IDL][SETUPAPI][UMPNPMGR] Improve PNP_RegisterNotification
- The 2nd parameter is the handle to the recipient. - The 8th parameter is the callers process id.
This commit is contained in:
parent
954598037f
commit
71df39b027
|
@ -4689,13 +4689,13 @@ DWORD
|
||||||
WINAPI
|
WINAPI
|
||||||
PNP_RegisterNotification(
|
PNP_RegisterNotification(
|
||||||
handle_t hBinding,
|
handle_t hBinding,
|
||||||
DWORD ulUnknown2,
|
DWORD_PTR hRecipient,
|
||||||
LPWSTR pszName,
|
LPWSTR pszName,
|
||||||
BYTE *pNotificationFilter,
|
BYTE *pNotificationFilter,
|
||||||
DWORD ulNotificationFilterSize,
|
DWORD ulNotificationFilterSize,
|
||||||
DWORD ulFlags,
|
DWORD ulFlags,
|
||||||
PNP_NOTIFY_HANDLE *pNotifyHandle,
|
PNP_NOTIFY_HANDLE *pNotifyHandle,
|
||||||
DWORD ulUnknown8,
|
DWORD ulProcessId,
|
||||||
DWORD *pulUnknown9)
|
DWORD *pulUnknown9)
|
||||||
{
|
{
|
||||||
PDEV_BROADCAST_DEVICEINTERFACE_W pBroadcastDeviceInterface;
|
PDEV_BROADCAST_DEVICEINTERFACE_W pBroadcastDeviceInterface;
|
||||||
|
@ -4703,8 +4703,8 @@ PNP_RegisterNotification(
|
||||||
PNOTIFY_ENTRY pNotifyData = NULL;
|
PNOTIFY_ENTRY pNotifyData = NULL;
|
||||||
|
|
||||||
DPRINT1("PNP_RegisterNotification(%p %lx '%S' %p %lu 0x%lx %p %lx %p)\n",
|
DPRINT1("PNP_RegisterNotification(%p %lx '%S' %p %lu 0x%lx %p %lx %p)\n",
|
||||||
hBinding, ulUnknown2, pszName, pNotificationFilter,
|
hBinding, hRecipient, pszName, pNotificationFilter,
|
||||||
ulNotificationFilterSize, ulFlags, pNotifyHandle, ulUnknown8, pulUnknown9);
|
ulNotificationFilterSize, ulFlags, pNotifyHandle, ulProcessId, pulUnknown9);
|
||||||
|
|
||||||
if (pNotifyHandle == NULL)
|
if (pNotifyHandle == NULL)
|
||||||
return CR_INVALID_POINTER;
|
return CR_INVALID_POINTER;
|
||||||
|
|
|
@ -670,7 +670,7 @@ CMP_RegisterNotification(
|
||||||
RpcTryExcept
|
RpcTryExcept
|
||||||
{
|
{
|
||||||
ret = PNP_RegisterNotification(BindingHandle,
|
ret = PNP_RegisterNotification(BindingHandle,
|
||||||
0, /* ??? */
|
(DWORD_PTR)hRecipient,
|
||||||
szNameBuffer,
|
szNameBuffer,
|
||||||
(BYTE*)lpvNotificationFilter,
|
(BYTE*)lpvNotificationFilter,
|
||||||
((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size,
|
((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size,
|
||||||
|
|
|
@ -878,7 +878,7 @@ interface pnp
|
||||||
__stdcall
|
__stdcall
|
||||||
PNP_RegisterNotification(
|
PNP_RegisterNotification(
|
||||||
[in] handle_t hBinding,
|
[in] handle_t hBinding,
|
||||||
[in] DWORD ulUnknown2,
|
[in] DWORD_PTR hRecipient,
|
||||||
[in, string, ref] LPWSTR pszName,
|
[in, string, ref] LPWSTR pszName,
|
||||||
[in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter,
|
[in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter,
|
||||||
[in] DWORD ulNotificationFilterSize,
|
[in] DWORD ulNotificationFilterSize,
|
||||||
|
|
Loading…
Reference in a new issue