https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7faca935e61a87b2c356d…
commit 7faca935e61a87b2c356da370745f6138441d69a
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Thu Jul 8 10:58:47 2021 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Thu Jul 8 10:58:47 2021 +0200
[SETUPAPI] PNP_RegisterNotification: Parameter 8 seems to be a process ID
---
dll/win32/setupapi/cfgmgr.c | 2 +-
sdk/include/reactos/idl/pnp.idl | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/win32/setupapi/cfgmgr.c b/dll/win32/setupapi/cfgmgr.c
index 923f16c2b2c..b6827bc6925 100644
--- a/dll/win32/setupapi/cfgmgr.c
+++ b/dll/win32/setupapi/cfgmgr.c
@@ -675,7 +675,7 @@ CMP_RegisterNotification(
((DEV_BROADCAST_HDR*)lpvNotificationFilter)->dbch_size,
ulFlags,
&pNotifyData->ulNotifyData,
- 0, /* ??? */
+ GetCurrentProcessId(),
&ulUnknown9); /* ??? */
}
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
diff --git a/sdk/include/reactos/idl/pnp.idl b/sdk/include/reactos/idl/pnp.idl
index d1aa03e678d..b3bcc221a49 100644
--- a/sdk/include/reactos/idl/pnp.idl
+++ b/sdk/include/reactos/idl/pnp.idl
@@ -881,8 +881,8 @@ interface pnp
[in] DWORD ulNotificationFilterSize,
[in] DWORD ulFlags,
[out] DWORD *pulNotifyData,
- [in] DWORD ulUnknown8,
- [out] DWORD *pulUnknown9);
+ [in] DWORD ulProcessId,
+ [in] DWORD *pulUnknown9);
/* Function 60 */
DWORD