PFN_CRYPT_ENUM_OID_FUNC callback function (wincrypt.h)
The CRYPT_ENUM_OID_FUNCTION callback function is used with the CryptEnumOIDFunction function.
Syntax
PFN_CRYPT_ENUM_OID_FUNC PfnCryptEnumOidFunc;
BOOL PfnCryptEnumOidFunc(
[in] DWORD dwEncodingType,
LPCSTR pszFuncName,
[in] LPCSTR pszOID,
[in] DWORD cValue,
const DWORD rgdwValueType[],
LPCWSTR const rgpwszValueName[],
const BYTE * const rgpbValueData[],
const DWORD rgcbValueData[],
[in] void *pvArg
)
{...}
Parameters
[in] dwEncodingType
Specifies the encoding type to match. Setting this parameter to CRYPT_MATCH_ANY_ENCODING_TYPE matches any encoding type.
- CRYPT_ASN_ENCODING
- X509_ASN_ENCODING
- PKCS_7_ASN_ENCODING
- CRYPT_MATCH_ANY_ENCODING_TYPE
pszFuncName
[in] pszOID
A pointer to either an OID string, such as "2.5.29.1", an ASCII string, such as "file", or a numeric string, such as #2000.
[in] cValue
Count of elements in the array of value types.
rgdwValueType[]
rgpwszValueName[]
rgpbValueData[]
rgcbValueData[]
[in] pvArg
A pointer to arguments passed through to the callback function.
Return value
Returns TRUE if the function succeeds, FALSE if it fails.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | wincrypt.h |