[ADVAPI32][IDL][SERVICES] Implement I_ScValidatePnPService

This is actually a Vista+ function, but we need it enable umpnpmgr.dll to notify services of device events. Up until WinXP it was possible to make direct calls to the service manager by umpnpmgr.dll because umpnpmgr.dll was loaded into the service manager process. From Vista onwards umpnpmgr.dll is run as a separate service host process. And since ReactOS always ran umpnpmgr.dll as a separate process, we have to use the Vista RPC functions to notify services.
This commit is contained in:
Eric Kohl 2023-12-31 15:33:19 +01:00
parent 10bb50b456
commit f5346cbc1b
4 changed files with 93 additions and 7 deletions

View file

@ -882,8 +882,10 @@ interface svcctl
/* Function 53 */
DWORD
__stdcall
RValidatePnPService(
[in] handle_t BindingHandle); /* FIXME */
RI_ScValidatePnPService(
[in] SC_RPC_HANDLE hService,
[in, string] LPWSTR pszServiceName,
[out] RPC_SERVICE_STATUS_HANDLE *phServiceStatus);
/* Function 54 */
DWORD