CryptUnregisterOIDFunction function (wincrypt.h)

The CryptUnregisterOIDFunction function removes the registration of a DLL that contains the function to be called for the specified encoding type, function name, and OID.

Syntax

BOOL CryptUnregisterOIDFunction(
  [in] DWORD  dwEncodingType,
  [in] LPCSTR pszFuncName,
  [in] LPCSTR pszOID
);

Parameters

[in] dwEncodingType

Specifies the encoding type to be matched. Currently, only X509_ASN_ENCODING and PKCS_7_ASN_ENCODING are used; however, additional encoding types may be added in the future. To match both current encoding types, use:

X509_ASN_ENCODING | PKCS_7_ASN_ENCODING

For functions that do not use an encoding type, set this parameter to zero.

[in] pszFuncName

Name of the function being unregistered.

[in] pszOID

A pointer to the object identifier (OID) that corresponds to the name of the function being unregistered. If the high order word of the OID is nonzero, pszOID is a pointer to either an OID string such as "2.5.29.1" or an ASCII string such as "file." If the high order word of the OID is zero, the low order word specifies the integer identifier to be used as the object identifier.

Return value

If the function succeeds, the return value is nonzero (TRUE).

If the function fails, the return value is zero (FALSE).

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
Library Crypt32.lib
DLL Crypt32.dll

See also

OID Support Functions