mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[ADVAPI32]
Implement I_ScPnPGetServiceName(). svn path=/trunk/; revision=73547
This commit is contained in:
@@ -296,7 +296,7 @@
|
||||
296 stdcall GetWindowsAccountDomainSid(ptr ptr ptr)
|
||||
297 stub I_QueryTagInformation
|
||||
298 stub I_ScIsSecurityProcess
|
||||
299 stub I_ScPnPGetServiceName
|
||||
299 stdcall I_ScPnPGetServiceName(ptr wstr long)
|
||||
300 stub I_ScSendTSMessage
|
||||
301 stdcall I_ScSetServiceBitsA(ptr long long long str)
|
||||
302 stdcall I_ScSetServiceBitsW(ptr long long long wstr)
|
||||
|
||||
@@ -183,6 +183,7 @@ ScServiceMainStubA(LPVOID Context)
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static DWORD WINAPI
|
||||
ScServiceMainStubW(LPVOID Context)
|
||||
{
|
||||
@@ -742,6 +743,34 @@ RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName,
|
||||
}
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* I_ScPnPGetServiceName
|
||||
*
|
||||
* Undocumented
|
||||
*
|
||||
* @implemented
|
||||
*/
|
||||
DWORD
|
||||
WINAPI
|
||||
I_ScPnPGetServiceName(IN SERVICE_STATUS_HANDLE hServiceStatus,
|
||||
OUT LPWSTR lpServiceName,
|
||||
IN DWORD cchServiceName)
|
||||
{
|
||||
DWORD i;
|
||||
|
||||
for (i = 0; i < dwActiveServiceCount; i++)
|
||||
{
|
||||
if (lpActiveServices[i].hServiceStatus == hServiceStatus)
|
||||
{
|
||||
wcscpy(lpServiceName, lpActiveServices[i].ServiceName.Buffer);
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
return ERROR_SERVICE_NOT_IN_EXE;
|
||||
}
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* I_ScSetServiceBitsA
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user