CertAlgIdToOID function

Use the CryptFindOIDInfo function instead of this function because ALG_ID identifiers are no longer supported in CNG. Use the CRYPT_OID_INFO_CNG_ALGID_KEY value in the dwKeyType parameter of the CryptFindOIDInfo function instead.

Windows Server 2003 and Windows XP:  The CertAlgIdToOID function converts a CryptoAPI algorithm identifier (ALG_ID) to an Abstract Syntax Notation One (ASN.1) object identifier (OID) string.


  DWORD dwAlgId



Value to be converted to an OID.

Return Value

If the function succeeds, the function returns the null-terminated OID string.

If no OID string corresponds to the algorithm identifier, the function returns NULL.


Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll

See Also

Data Conversion Functions