[ADVAPI32]

Implement I_ScPnPGetServiceName().

svn path=/trunk/; revision=73547
This commit is contained in:
Eric Kohl 2017-01-14 15:17:29 +00:00
parent 48f148bba8
commit eb31df80a7
2 changed files with 30 additions and 1 deletions

View file

@ -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)

View file

@ -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
*