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.


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


[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:


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 "" 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).


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