wintrust: Implementations for WTHelperGetFileName and WTHelperGetFileHandle.
This commit is contained in:
parent
d055cb8d5c
commit
8d5f94b199
|
@ -77,8 +77,8 @@
|
|||
@ stub WTHelperCertIsSelfSigned
|
||||
@ stub WTHelperCheckCertUsage
|
||||
@ stub WTHelperGetAgencyInfo
|
||||
@ stub WTHelperGetFileHandle
|
||||
@ stub WTHelperGetFileName
|
||||
@ stdcall WTHelperGetFileHandle(ptr)
|
||||
@ stdcall WTHelperGetFileName(ptr)
|
||||
@ stub WTHelperGetKnownUsages
|
||||
@ stdcall WTHelperGetProvCertFromChain(ptr long)
|
||||
@ stub WTHelperGetProvPrivateDataFromChain
|
||||
|
|
|
@ -432,6 +432,30 @@ CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
|
|||
return (CRYPT_PROVIDER_DATA *)hStateData;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* WTHelperGetFileName(WINTRUST.@)
|
||||
*/
|
||||
LPCWSTR WINAPI WTHelperGetFileName(WINTRUST_DATA *data)
|
||||
{
|
||||
TRACE("%p\n",data);
|
||||
if (data->dwUnionChoice == WTD_CHOICE_FILE)
|
||||
return data->u.pFile->pcwszFilePath;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* WTHelperGetFileHandle(WINTRUST.@)
|
||||
*/
|
||||
HANDLE WINAPI WTHelperGetFileHandle(WINTRUST_DATA *data)
|
||||
{
|
||||
TRACE("%p\n",data);
|
||||
if (data->dwUnionChoice == WTD_CHOICE_FILE)
|
||||
return data->u.pFile->hFile;
|
||||
else
|
||||
return INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
||||
static const WCHAR Software_Publishing[] = {
|
||||
'S','o','f','t','w','a','r','e','\\',
|
||||
'M','i','c','r','o','s','o','f','t','\\',
|
||||
|
|
Loading…
Reference in New Issue