mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 19:43:31 +08:00
[SERVICES] Implement RI_ScQueryServiceTagInfo
This commit is contained in:
parent
e29a99245b
commit
90f5e6b6c3
@ -145,6 +145,14 @@ ScmGetServiceImageByImagePath(LPWSTR lpImagePath)
|
||||
}
|
||||
|
||||
|
||||
DWORD
|
||||
ScmGetServiceNameFromTag(PTAG_INFO_NAME_FROM_TAG_IN_PARAMS InParams, PTAG_INFO_NAME_FROM_TAG_OUT_PARAMS *OutParams)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
static
|
||||
BOOL
|
||||
ScmIsSameServiceAccount(
|
||||
|
@ -6586,8 +6586,38 @@ RI_ScQueryServiceTagInfo(
|
||||
PTAG_INFO_NAME_FROM_TAG_IN_PARAMS * lpInParams,
|
||||
PTAG_INFO_NAME_FROM_TAG_OUT_PARAMS * lpOutParams)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
PMANAGER_HANDLE hManager;
|
||||
|
||||
/* Validate handle */
|
||||
hManager = ScmGetServiceManagerFromHandle(hSCManager);
|
||||
if (hManager == NULL)
|
||||
{
|
||||
return ERROR_INVALID_HANDLE;
|
||||
}
|
||||
|
||||
/* FIXME: should check whether client is local */
|
||||
|
||||
/* Check access rights */
|
||||
if (!RtlAreAllAccessesGranted(hManager->Handle.DesiredAccess,
|
||||
SC_MANAGER_ENUMERATE_SERVICE))
|
||||
{
|
||||
return ERROR_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
/* Check parameters */
|
||||
if (lpInParams == NULL || lpOutParams == NULL)
|
||||
{
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
/* Check info level */
|
||||
if (dwInfoLevel != TagInfoLevelNameFromTag)
|
||||
{
|
||||
return ERROR_RETRY;
|
||||
}
|
||||
|
||||
/* Call internal helper */
|
||||
return ScmGetServiceNameFromTag(*lpInParams, lpOutParams);
|
||||
}
|
||||
|
||||
|
||||
|
@ -197,6 +197,8 @@ VOID ScmUnlockDatabase(VOID);
|
||||
VOID ScmInitNamedPipeCriticalSection(VOID);
|
||||
VOID ScmDeleteNamedPipeCriticalSection(VOID);
|
||||
|
||||
DWORD ScmGetServiceNameFromTag(PTAG_INFO_NAME_FROM_TAG_IN_PARAMS InParams,
|
||||
PTAG_INFO_NAME_FROM_TAG_OUT_PARAMS *OutParams);
|
||||
|
||||
/* driver.c */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user