Skip to content

Latest commit

 

History

History
101 lines (73 loc) · 3.78 KB

nf-wincrypt-cryptinstalloidfunctionaddress.md

File metadata and controls

101 lines (73 loc) · 3.78 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wincrypt.CryptInstallOIDFunctionAddress
CryptInstallOIDFunctionAddress function (wincrypt.h)
The CryptInstallOIDFunctionAddress function installs a set of callable object identifier (OID) function addresses.
CryptInstallOIDFunctionAddress
CryptInstallOIDFunctionAddress function [Security]
_crypto2_cryptinstalloidfunctionaddress
security.cryptinstalloidfunctionaddress
wincrypt/CryptInstallOIDFunctionAddress
security\cryptinstalloidfunctionaddress.htm
security
934e8278-0e0b-4402-a2b6-ff1e913d54c9
12/05/2018
CryptInstallOIDFunctionAddress, CryptInstallOIDFunctionAddress function [Security], _crypto2_cryptinstalloidfunctionaddress, security.cryptinstalloidfunctionaddress, wincrypt/CryptInstallOIDFunctionAddress
wincrypt.h
Windows
Windows XP [desktop apps \| UWP apps]
Windows Server 2003 [desktop apps \| UWP apps]
Crypt32.lib
Crypt32.dll
Windows
19H1
CryptInstallOIDFunctionAddress
wincrypt/CryptInstallOIDFunctionAddress
c++
APIRef
kbSyntax
DllExport
Crypt32.dll
CryptInstallOIDFunctionAddress

CryptInstallOIDFunctionAddress function

-description

The CryptInstallOIDFunctionAddress function installs a set of callable object identifier (OID) function addresses.

-parameters

-param hModule [in]

This parameter is updated with the hModule parameter passed to DllMain to prevent the DLL that contains the function addresses from being unloaded by CryptGetOIDFunctionAddress or CryptFreeOIDFunctionAddress. This would be the case when the DLL has also registered OID functions through CryptRegisterOIDFunction.

-param dwEncodingType [in]

Specifies the encoding type to be matched. Currently, only X509_ASN_ENCODING and PKCS_7_ASN_ENCODING are being 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

-param pszFuncName [in]

Name of the function set being installed.

-param cFuncEntry [in]

Number of array elements in rgFuncEntry[].

-param rgFuncEntry [in]

Array of CRYPT_OID_FUNC_ENTRY structures, each containing an OID and the starting address of its correlated routine.

Default functions are installed by setting the pszOID member of the CRYPT_OID_FUNC_ENTRY structure for their array element to CRYPT_DEFAULT_OID.

-param dwFlags [in]

By default, a new function set is installed at the end of the list of function sets. Setting the CRYPT_INSTALL_OID_FUNC_BEFORE_FLAG flag installs the function set at the beginning of the list.

-returns

If the function succeeds, the function returns nonzero (TRUE).

If the function fails, it returns zero (FALSE).

-see-also

CRYPT_OID_FUNC_ENTRY

OID Support Functions