[ADVAPI32] Implement I_QueryTagInformation

This commit is contained in:
Pierre Schweitzer 2018-12-30 11:52:37 +01:00
parent dfaee51f98
commit 19304da5c3
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 45 additions and 1 deletions

View file

@ -294,7 +294,7 @@
294 stdcall GetUserNameA(ptr ptr)
295 stdcall GetUserNameW(ptr ptr)
296 stdcall GetWindowsAccountDomainSid(ptr ptr ptr)
297 stub I_QueryTagInformation
297 stdcall I_QueryTagInformation(ptr long ptr)
298 stdcall I_ScIsSecurityProcess()
299 stdcall I_ScPnPGetServiceName(ptr wstr long)
300 stub I_ScSendTSMessage

View file

@ -3022,4 +3022,48 @@ NotifyBootConfigStatus(BOOL BootAcceptable)
return TRUE;
}
DWORD
I_ScQueryServiceTagInfo(PVOID Unused,
TAG_INFO_LEVEL dwInfoLevel,
PTAG_INFO_NAME_FROM_TAG InOutParams)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/**********************************************************************
* I_QueryTagInformation
*
* @implemented
*/
DWORD WINAPI
I_QueryTagInformation(PVOID Unused,
TAG_INFO_LEVEL dwInfoLevel,
PTAG_INFO_NAME_FROM_TAG InOutParams)
{
/*
* We only support one information class and it
* needs parameters
*/
if (dwInfoLevel != TagInfoLevelNameFromTag ||
InOutParams == NULL)
{
return ERROR_INVALID_PARAMETER;
}
/* Validate input structure */
if (InOutParams->InParams.dwPid == 0 || InOutParams->InParams.dwTag == 0)
{
return ERROR_INVALID_PARAMETER;
}
/* Validate output structure */
if (InOutParams->OutParams.pszName != NULL)
{
return ERROR_INVALID_PARAMETER;
}
/* Call internal function for the RPC call */
return I_ScQueryServiceTagInfo(Unused, TagInfoLevelNameFromTag, InOutParams);
}
/* EOF */