CRYPT_XML_DATA_PROVIDER structure (cryptxml.h)

The CRYPT_XML_DATA_PROVIDER structure specifies the interface to the XML data provider.

Syntax

typedef struct _CRYPT_XML_DATA_PROVIDER {
  void                              *pvCallbackState;
  ULONG                             cbBufferSize;
  PFN_CRYPT_XML_DATA_PROVIDER_READ  pfnRead;
  PFN_CRYPT_XML_DATA_PROVIDER_CLOSE pfnClose;
} CRYPT_XML_DATA_PROVIDER, *PCRYPT_XML_DATA_PROVIDER;

Members

pvCallbackState

An application-defined argument that is passed to the pfnRead and pfnClose callback functions.

cbBufferSize

The size, in bytes, of the data provider's buffer. The size can be zero if the size does not matter or if the size cannot be determined by the provider. This value is used by a caller of pfnRead to determine the necessary size of the receiving buffer.

pfnRead

A pointer to a PFN_CRYPT_XML_DATA_PROVIDER_READ callback function used to read data.

pfnClose

A pointer to a PFN_CRYPT_XML_DATA_PROVIDER_CLOSE callback function used to release the data provider. When you have finished using the data provider, you must release it.

Requirements

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