wintrust: Implementations for WTHelperGetFileName and WTHelperGetFileHandle.

This commit is contained in:
Aric Stewart 2007-12-11 22:16:03 +09:00 committed by Alexandre Julliard
parent d055cb8d5c
commit 8d5f94b199
2 changed files with 26 additions and 2 deletions

View File

@ -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

View File

@ -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','\\',