PFN_CRYPT_XML_WRITE_CALLBACK callback function (cryptxml.h)

The PFN_CRYPT_XML_WRITE_CALLBACK callback function writes XML data.

Syntax

PFN_CRYPT_XML_WRITE_CALLBACK PfnCryptXmlWriteCallback;

HRESULT PfnCryptXmlWriteCallback(
  [in, out] void *pvCallbackState,
  [in]      const BYTE *pbData,
            ULONG cbData
)
{...}

Parameters

[in, out] pvCallbackState

A pointer to an argument that is passed to the callback function pointed to by the pfnWrite parameter of the CryptXmlDllEncodeAlgorithm function.

[in] pbData

A pointer to a block of data to be written.

cbData

The size, in bytes, of the data pointed to by the pbData parameter.

Return value

If the function succeeds, the function returns zero.

If the function fails, it returns an HRESULT value that indicates the error.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header cryptxml.h