---
name: "CryptRegisterOIDFunction"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CryptRegisterOIDFunction"
---

# CryptRegisterOIDFunction(3w)

## NAME

**CryptRegisterOIDFunction** (CRYPT32.@)

## SYNOPSIS

BOOL CryptRegisterOIDFunction\
  (\
   DWORD   *dwEncodingType*,\
   LPCSTR  *pszFuncName*,\
   LPCSTR  *pszOID*,\
   LPCWSTR *pwszDll*,\
   LPCSTR  *pszOverrideFuncName*\
  )

## DESCRIPTION

Register the dll and the functions it uses to cover the combination of encoding type, function name and **OID**.

## PARAMS

*dwEncodingType* **\[In\]**  Encoding type to be used.

*pszFuncName* **\[In\]**  Name of the function to be registered.

*pszOID* **\[In\]**  **OID** of the function (numeric or string).

*pwszDll* **\[In\]**  The dll that is to be registered.

*pszOverrideFuncName* **\[In\]**  Name of the function in the **DLL**.

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**. (Look at **[GetLastError(3w)](/GetLastError/3w.md)**).

## NOTES

Registry errors are always reported via **[SetLastError(3w)](/SetLastError/3w.md)**.

## IMPLEMENTATION

Declared in **"wincrypt.h"**.

Implemented in **"dlls/crypt32/oid.c"**.

Debug channel **"crypt"**.
