Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains information used to decrypt an enveloped message for a key transport recipient. This structure is passed to CryptMsgControlif the dwCtrlTypeparameter is CMSG_CTRL_DECRYPT.

Important changes affecting the handling of enveloped messages have been made to CryptoAPI to support S/MIME e-mail interoperability. For details, see the Remarks section of CryptMsgOpenToEncode.

Syntax

typedef struct _CMSG_CTRL_DECRYPT_PARA {
  DWORD 
cbSize;
  HCRYPTPROV 
hCryptProv;
  DWORD 
dwKeySpec;
  DWORD 
dwRecipientIndex;
} CMSG_CTRL_DECRYPT_PARA, *PCMSG_CTRL_DECRYPT_PARA;

Members

cbSize

Size of this structure in bytes.

hCryptProv

Cryptographic service provider (CSP) handle.

dwKeySpec

The private key to be used.

The following dwKeySpecvalues are defined for the default provider.

Value Description

AT_KEYEXCHANGE

Keys used to encrypt/decrypt session keys.

AT_SIGNATURE

Keys used to create and verify digital signatures.

If dwKeySpecis zero, the default AT_KEYEXCHANGE is used.

dwRecipientIndex

Index of the recipient in the message associated with the hCryptProvprivate key.

Requirements

Header wincrypt.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.