From ab5494e83ecde54f37ec02cf9fd20219d12baab1 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Wed, 13 Sep 2006 17:15:00 -0700 Subject: [PATCH] wintrust: Add a stub implementation of CryptCATEnumerateMember. --- dlls/wintrust/crypt.c | 9 +++++++++ dlls/wintrust/wintrust.spec | 2 +- include/mscat.h | 14 ++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/dlls/wintrust/crypt.c b/dlls/wintrust/crypt.c index bdbbda42182..692501fa77e 100644 --- a/dlls/wintrust/crypt.c +++ b/dlls/wintrust/crypt.c @@ -98,6 +98,15 @@ BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags ) return FALSE; } +/*********************************************************************** + * CryptCATEnumerateMember (WINTRUST.@) + */ +CRYPTCATMEMBER *WINAPI CryptCATEnumerateMember(HANDLE hCatalog, CRYPTCATMEMBER* pPrevMember) +{ + FIXME("(%p, %p) stub\n", hCatalog, pPrevMember); + return NULL; +} + /*********************************************************************** * CryptCATOpen (WINTRUST.@) */ diff --git a/dlls/wintrust/wintrust.spec b/dlls/wintrust/wintrust.spec index eb3c9bb0b0b..bd47e739f32 100644 --- a/dlls/wintrust/wintrust.spec +++ b/dlls/wintrust/wintrust.spec @@ -21,7 +21,7 @@ @ stub CryptCATClose @ stub CryptCATEnumerateAttr @ stub CryptCATEnumerateCatAttr -@ stub CryptCATEnumerateMember +@ stdcall CryptCATEnumerateMember(long ptr) @ stub CryptCATGetAttrInfo @ stub CryptCATGetCatAttrInfo @ stub CryptCATGetMemberInfo diff --git a/include/mscat.h b/include/mscat.h index ad3eca0892c..7e95155b6ce 100644 --- a/include/mscat.h +++ b/include/mscat.h @@ -26,6 +26,20 @@ typedef HANDLE HCATINFO; extern "C" { #endif +typedef struct CRYPTCATMEMBER_ { + DWORD cbStruct; + LPWSTR pwszReferenceTag; + LPWSTR pwszFileName; + GUID gSubjectType; + DWORD fdwMemberFlags; + struct SIP_INDIRECT_DATA_* pIndirectData; + DWORD dwCertVersion; + DWORD dwReserved; + HANDLE hReserved; + CRYPT_ATTR_BLOB sEncodedIndirectData; + CRYPT_ATTR_BLOB sEncodedMemberInfo; +} CRYPTCATMEMBER; + BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN*,const GUID*,DWORD); BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE,DWORD*,BYTE*,DWORD); HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN,BYTE*,DWORD,DWORD,HCATINFO*);