UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:wincrypt.PFN_CMSG_EXPORT_MAIL_LIST |
PFN_CMSG_EXPORT_MAIL_LIST (wincrypt.h) |
Encrypts and exports the content encryption key for a mailing list recipient of an enveloped message. |
|
security\pfn_cmsg_export_mail_list.htm |
security |
68a75714-cf47-40f9-95ab-e1ffc8936390 |
12/05/2018 |
PFN_CMSG_EXPORT_MAIL_LIST, PFN_CMSG_EXPORT_MAIL_LIST callback, PFN_CMSG_EXPORT_MAIL_LIST callback function [Security], security.pfn_cmsg_export_mail_list, wincrypt/PFN_CMSG_EXPORT_MAIL_LIST |
wincrypt.h |
Windows |
Windows XP [desktop apps only] |
Windows Server 2003 [desktop apps only] |
Windows |
19H1 |
|
|
|
|
|
|
The PFN_CMSG_EXPORT_MAIL_LIST callback function encrypts and exports the content encryption key for a mailing list recipient of an enveloped message. PFN_CMSG_EXPORT_MAIL_LIST can be installed by using a CryptoAPI object identifier (OID). This function is called by the CryptMsgOpenToEncode function when its dwMsgType parameter is set to CMSG_ENVELOPED.
A pointer to a CMSG_CONTENT_ENCRYPT_INFO structure that contains the content encryption key.
A pointer to a CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO structure that specifies the key used to encrypt the content encryption key.
A pointer to a CMSG_MAIL_LIST_ENCRYPT_INFO structure that contains the encrypted content encryption key.
This value is not used. Set it to zero.
This parameter is reserved and must be NULL.
If the function succeeds, the return value is nonzero (TRUE).
If the function fails, the return value is zero (FALSE). For extended error information, call GetLastError.
The PFN_CMSG_EXPORT_MAIL_LIST function must update the EncryptedKey member of the CMSG_MAIL_LIST_ENCRYPT_INFO structure pointed to by the pMailListEncryptInfo parameter. This function must use the pfnAlloc and pfnFree members of the CMSG_CONTENT_ENCRYPT_INFO structure pointed to by the pContentEncryptInfo parameter to manage memory for any values that it updates.
You can use OID Support Functions to deploy this callback function. Wincrypt.h defines the following constants for this purpose.
Constant | Definition |
---|---|
CMSG_OID_EXPORT_MAIL_LIST_FUNC or CMSG_OID_CAPI1_EXPORT_MAIL_LIST_FUNC | "CryptMsgDllExportMailList" |