http://bugs.winehq.org/show_bug.cgi?id=6194
------- Additional Comments From focht@gmx.net 2007-27-05 11:47 ------- Hello,
the prototypes is correct, though it could be LPCWSTR for const correctness :-)
Looking at API trace it seems to enumerates all attributes from catalog (given handle) and compares the attribute name. It returns the CRYPTCATATTRIBUTE on the match.
E.g. something like this:
--- snip pseudo code CryptCATGetCatAttrInfo() --- .. CRYPTCATATTRIBUTE* pAttr = NULL; while( (pAttr = CryptCATEnumerateCatAttr( hCatalog, pAttr)) != NULL) { if( wcsicmp( (LPCWSTR) pAttr->pwszReferenceTag, attr_name) == 0) break; }
if( pAttr == NULL) { SetLastError( CRYPT_E_NOT_FOUND); }
return pAttr; --- snip pseudo code CryptCATGetCatAttrInfo() ---
Regards