The CryptEnumOIDInfo function enumerates the OID Information identified by their group and calls pfnEnumOIDInfo for matches.
#include <wincrypt.h>
BOOL WINAPI CryptEnumOIDInfo(
DWORD dwGroupId, // in
DWORD dwFlags, // in
void *pvArg, // in
PFN_CRYPT_ENUM_OID_INFO pfnEnumOIDInfo // in
);
Currently defined OID group IDs are shown in the following table:
Group ID | Value |
---|---|
None | 0 |
CRYPT_HASH_ALG_OID_GROUP_ID | 1 |
CRYPT_ENCRYPT_ALG_OID_GROUP_ID | 2 |
CRYPT_PUBKEY_ALG_OID_GROUP_ID | 3 |
CRYPT_SIGN_ALG_OID_GROUP_ID | 4 |
CRYPT_RDN_ATTR_OID_GROUP_ID | 5 |
CRYPT_EXT_OR_ATTR_OID_GROUP_ID | 6 |
CRYPT_ENHKEY_USAGE_OID_GROUP_ID | 7 |
CRYPT_POLICY_OID_GROUP_ID | 8 |
FALSE when the function has stopped the enumeration.
The following typedef structure applies to pfnEnumOIDInfo.
typedef BOOL (WINAPI *PFN_CRYPT_ENUM_OID_INFO)(
IN PCCRYPT_OID_INFO pInfo
IN void *pvArg
);
Windows NT: Requires version 4.0 SP3 or later. Available also in IE 3.02 and later.
Windows: Requires Windows 98 (or Windows 95 with IE 3.02 or later).
Windows CE: Unsupported.
Header: Declared in wincrypt.h.
Import Library: Use crypt32.lib.