Commit 3effba78 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wintrust: Implement IsCatalogFile.

parent 043bdc16
......@@ -50,7 +50,7 @@
@ stdcall GenericChainFinalProv(ptr)
@ stdcall HTTPSCertificateTrust(ptr)
@ stdcall HTTPSFinalProv(ptr)
@ stub IsCatalogFile
@ stdcall IsCatalogFile(ptr wstr)
@ stub MsCatConstructHashTag
@ stub MsCatFreeHashTag
@ stub OfficeCleanupPolicy
......
......@@ -1201,3 +1201,18 @@ HRESULT WINAPI WTHelperCertCheckValidSignature(CRYPT_PROVIDER_DATA *pProvData)
FIXME("Stub\n");
return S_OK;
}
/***********************************************************************
* IsCatalogFile
*/
BOOL WINAPI IsCatalogFile(HANDLE hFile, WCHAR *pwszFileName)
{
static const GUID catGUID = { 0xDE351A43, 0x8E59, 0x11D0, { 0x8C,0x47,0x00,0xC0,0x4F,0xC2,0x95,0xEE }};
GUID guid;
TRACE("(%p, %s)\n", hFile, debugstr_w(pwszFileName));
if (!CryptSIPRetrieveSubjectGuid(pwszFileName, hFile, &guid))
return FALSE;
return IsEqualGUID(&guid, &catGUID);
}
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