mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:25:48 +00:00
[ADVAPI32]
Implement I_ScGetCurrentGroupStateW. svn path=/trunk/; revision=71626
This commit is contained in:
parent
2d6b126e44
commit
b3bcb0725a
2 changed files with 37 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
1 stub I_ScGetCurrentGroupStateW
|
1 stdcall I_ScGetCurrentGroupStateW(ptr wstr ptr)
|
||||||
2 stdcall A_SHAFinal(ptr ptr)
|
2 stdcall A_SHAFinal(ptr ptr)
|
||||||
3 stdcall A_SHAInit(ptr)
|
3 stdcall A_SHAInit(ptr)
|
||||||
4 stdcall A_SHAUpdate(ptr ptr long)
|
4 stdcall A_SHAUpdate(ptr ptr long)
|
||||||
|
|
|
@ -1674,6 +1674,42 @@ GetServiceKeyNameW(SC_HANDLE hSCManager,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* I_ScGetCurrentGroupStateW
|
||||||
|
*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
DWORD WINAPI
|
||||||
|
I_ScGetCurrentGroupStateW(SC_HANDLE hSCManager,
|
||||||
|
LPWSTR pszGroupName,
|
||||||
|
LPDWORD pdwGroupState)
|
||||||
|
{
|
||||||
|
DWORD dwError;
|
||||||
|
|
||||||
|
TRACE("I_ScGetCurrentGroupStateW() called\n");
|
||||||
|
|
||||||
|
RpcTryExcept
|
||||||
|
{
|
||||||
|
dwError = RI_ScGetCurrentGroupStateW((SC_RPC_HANDLE)hSCManager,
|
||||||
|
pszGroupName,
|
||||||
|
pdwGroupState);
|
||||||
|
}
|
||||||
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
{
|
||||||
|
dwError = ScmRpcStatusToWinError(RpcExceptionCode());
|
||||||
|
}
|
||||||
|
RpcEndExcept
|
||||||
|
|
||||||
|
if (dwError != ERROR_SUCCESS)
|
||||||
|
{
|
||||||
|
TRACE("RI_ScGetCurrentGroupStateW() failed (Error %lu)\n", dwError);
|
||||||
|
SetLastError(dwError);
|
||||||
|
}
|
||||||
|
|
||||||
|
return dwError;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* LockServiceDatabase
|
* LockServiceDatabase
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue