[UMPNPMGR][ADVAPI32][SERVICES] Pass PNP events to the service manager

- umpnpmgr.dll: Call I_ScSendPnPMessage to report pnp events to the service manager.
- adavpi32.dll: Implement I_ScSendPnPMessage which calls the service managers RI_ScSendPnPMessage function.
- services.exe: Add a debug message to RI_ScSendPnPMessage.
This commit is contained in:
Eric Kohl 2025-05-11 14:25:15 +02:00
parent 00b5dc8b49
commit d32fd58722
7 changed files with 99 additions and 28 deletions

View file

@ -876,8 +876,12 @@ interface svcctl
/* Function 52 */
DWORD
__stdcall
RSendPnPMessage(
[in] handle_t BindingHandle); /* FIXME */
RI_ScSendPnPMessage(
[in] RPC_SERVICE_STATUS_HANDLE hServiceStatus,
[in] DWORD dwControl,
[in] DWORD dwEventType,
[in] DWORD dwEventSize,
[in, size_is(dwEventSize)] LPBYTE pEventData);
/* Function 53 */
DWORD

View file

@ -60,7 +60,13 @@ I_ScPnPGetServiceName(
_Out_ LPWSTR lpServiceName,
_In_ DWORD cchServiceName);
/* I_ScSendPnPMessage */
DWORD
WINAPI
I_ScSendPnPMessage(
_In_ SERVICE_STATUS_HANDLE hServiceStatus,
_In_ DWORD dwControlCode,
_In_ DWORD dwEventType,
_In_ PVOID pEventData);
/* I_ScSendTSMessage */