ClusterEncrypt function (resapi.h)

Encrypts Checkpointing data for a Cryptographic Service Provider (CSP).

Syntax

DWORD ClusterEncrypt(
  HCLUSCRYPTPROVIDER hClusCryptProvider,
  PBYTE              pData,
  DWORD              cbData,
  PBYTE              *ppData,
  PDWORD             pcbData
);

Parameters

hClusCryptProvider

A HCLUSCRYPTPROVIDER structure that contains a handle to the CSP.

pData

A pointer to the data to encrypt.

cbData

The total number of bytes in the data pointed to by the pDta parameter.

ppData

A pointer to a buffer that receives the encrypted data.

pcbData

The total number of bytes in the data pointed to by the pcbData parameter.

Return value

If the operation completes successfully, this function returns ERROR_SUCCESS; otherwise, it returns a system error code.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2012 R2
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll

See also

Cryptography Functions