CryptEnumOIDInfo

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
);
 

Parameters

dwGroupId
Setting dwGroupId to zero matches all groups. Otherwise enumerates entries in the specified group.

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

dwFlags
Flag values. This parameter is reserved for future use and should be set to zero in the interim.
pvArg
Pointer to arguments that are passed through to the callback function.
pfnEnumOIDInfo
Callback function that is executed for each OID information entry matching the input parameters. See "Remarks" for details on the callback typedef.

Return Values

FALSE when the function has stopped the enumeration.

Remarks

The following typedef structure applies to pfnEnumOIDInfo.

typedef BOOL (WINAPI *PFN_CRYPT_ENUM_OID_INFO)(
    IN PCCRYPT_OID_INFO pInfo
    IN void *pvArg
 ); 
 

Members

pInfo
Pointer to the OID information.
pvArg
Arguments that are passed through to the callback function.

QuickInfo

  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.