PFN_CMSG_IMPORT_ENCRYPT_KEY Function Pointer

PFN_CMSG_IMPORT_ENCRYPT_KEY Function Pointer

The PFN_CMSG_IMPORT_ENCRYPT_KEY callback function is obsolete.

Note  This function is provided only for compatibility with Legacy operating systems and Internet Explorer 3.02. Beginning with Windows 2000, you should use the PFN_CMSG_IMPORT_KEY_TRANS, PFN_CMSG_IMPORT_KEY_AGREE, and PFN_CMSG_IMPORT_MAIL_LIST functions.

Syntax

typedef BOOL ( WINAPI *PFN_CMSG_IMPORT_ENCRYPT_KEY )(
  __in   HCRYPTPROV hCryptProv,
  __in   DWORD dwKeySpec,
  __in   PCRYPT_ALGORITHM_IDENTIFIER paiEncrypt,
  __in   PCRYPT_ALGORITHM_IDENTIFIER paiPubKey,
  __in   PBYTE pbEncodedKey,
  __in   DWORD cbEncodedKey,
  __out  HCRYPTKEY *phEncryptKey
);

Parameters

  • hCryptProv [in]

  • dwKeySpec [in]

  • paiEncrypt [in]

  • paiPubKey [in]

  • pbEncodedKey [in]

  • cbEncodedKey [in]

  • phEncryptKey [out]

Remarks

Constant Definition
CMSG_OID_IMPORT_ENCRYPT_KEY_FUNC "CryptMsgDllImportEncryptKey"

Send comments about this topic to Microsoft

Build date: 10/30/2008