Commit 8d5f94b1 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

wintrust: Implementations for WTHelperGetFileName and WTHelperGetFileHandle.

parent d055cb8d
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
@ stub WTHelperCertIsSelfSigned @ stub WTHelperCertIsSelfSigned
@ stub WTHelperCheckCertUsage @ stub WTHelperCheckCertUsage
@ stub WTHelperGetAgencyInfo @ stub WTHelperGetAgencyInfo
@ stub WTHelperGetFileHandle @ stdcall WTHelperGetFileHandle(ptr)
@ stub WTHelperGetFileName @ stdcall WTHelperGetFileName(ptr)
@ stub WTHelperGetKnownUsages @ stub WTHelperGetKnownUsages
@ stdcall WTHelperGetProvCertFromChain(ptr long) @ stdcall WTHelperGetProvCertFromChain(ptr long)
@ stub WTHelperGetProvPrivateDataFromChain @ stub WTHelperGetProvPrivateDataFromChain
......
...@@ -432,6 +432,30 @@ CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData) ...@@ -432,6 +432,30 @@ CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
return (CRYPT_PROVIDER_DATA *)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[] = { static const WCHAR Software_Publishing[] = {
'S','o','f','t','w','a','r','e','\\', 'S','o','f','t','w','a','r','e','\\',
'M','i','c','r','o','s','o','f','t','\\', 'M','i','c','r','o','s','o','f','t','\\',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment