Windows Dev Center

EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

CryptXmlEncode function

The CryptXmlEncode function encodes signature data by using the supplied XML writer callback function.

Syntax


HRESULT WINAPI CryptXmlEncode(
  _In_          HCRYPTXML                    hCryptXml,
                CRYPT_XML_CHARSET            dwCharset,
  _In_    const CRYPT_XML_PROPERTY           *rgProperty,
  _In_          ULONG                        cProperty,
  _Inout_       void                         *pvCallbackState,
  _In_          PFN_CRYPT_XML_WRITE_CALLBACK pfnWrite
);

Parameters

hCryptXml [in]

The handle of the object to be serialized. The handle can be of Signature, Object, or Reference types.

dwCharset

A value of the CRYPT_XML_CHARSET enumeration that specifies the character set of the encoded XML.

rgProperty [in]

A pointer to an array of CRYPT_XML_PROPERTY structures that contain additional properties.

cProperty [in]

A ULONG value that specifies the number of entries in the array pointed to by the rgProperty parameter.

pvCallbackState [in, out]

A pointer to an application defined argument that is passed to the XML writer callback function pointed to by the pfnWrite parameter.

pfnWrite [in]

An XML writer callback function to receive the application defined argument pointed to by the pvCallbackState 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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Cryptxml.h

Library

Cryptxml.lib

DLL

Cryptxml.dll

 

 

Ajouts de la communauté

AJOUTER
Afficher:
© 2015 Microsoft