CryptSetAsyncParam function (wincrypt.h)

Sets an async parameter.

Syntax

BOOL CryptSetAsyncParam(
  HCRYPTASYNC                     hAsync,
  LPSTR                           pszParamOid,
  LPVOID                          pvParam,
  PFN_CRYPT_ASYNC_PARAM_FREE_FUNC pfnFree
);

Parameters

hAsync

An async handle.

pszParamOid

The parameter ID.

pvParam

The parameter value.

pfnFree

A callback function called when the parameter is freed.

Return value

S_OK on success.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header wincrypt.h