mirror of
https://github.com/reactos/reactos.git
synced 2024-08-25 04:38:43 +00:00
[ADVAPI32]
Implement I_ScPnPGetServiceName(). svn path=/trunk/; revision=73547
This commit is contained in:
parent
48f148bba8
commit
eb31df80a7
|
@ -296,7 +296,7 @@
|
||||||
296 stdcall GetWindowsAccountDomainSid(ptr ptr ptr)
|
296 stdcall GetWindowsAccountDomainSid(ptr ptr ptr)
|
||||||
297 stub I_QueryTagInformation
|
297 stub I_QueryTagInformation
|
||||||
298 stub I_ScIsSecurityProcess
|
298 stub I_ScIsSecurityProcess
|
||||||
299 stub I_ScPnPGetServiceName
|
299 stdcall I_ScPnPGetServiceName(ptr wstr long)
|
||||||
300 stub I_ScSendTSMessage
|
300 stub I_ScSendTSMessage
|
||||||
301 stdcall I_ScSetServiceBitsA(ptr long long long str)
|
301 stdcall I_ScSetServiceBitsA(ptr long long long str)
|
||||||
302 stdcall I_ScSetServiceBitsW(ptr long long long wstr)
|
302 stdcall I_ScSetServiceBitsW(ptr long long long wstr)
|
||||||
|
|
|
@ -183,6 +183,7 @@ ScServiceMainStubA(LPVOID Context)
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static DWORD WINAPI
|
static DWORD WINAPI
|
||||||
ScServiceMainStubW(LPVOID Context)
|
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
|
* I_ScSetServiceBitsA
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue