PFN_CMSG_GEN_ENCRYPT_KEY Function Pointer

PFN_CMSG_GEN_ENCRYPT_KEY Function Pointer

The PFN_CMSG_GEN_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_GEN_CONTENT_ENCRYPT_KEY function.

Syntax

typedef BOOL ( WINAPI *PFN_CMSG_GEN_ENCRYPT_KEY )(
  __inout   HCRYPTPROV *phCryptProv,
  __in      PCRYPT_ALGORITHM_IDENTIFIER paiEncrypt,
  __in_opt  PVOID pvEncryptAuxInfo,
  __in      PCERT_PUBLIC_KEY_INFO pPublicKeyInfo,
            PFN_CMSG_ALLOC pfnAlloc,
  __out     HCRYPTKEY *phEncryptKey,
  __out     PBYTE *ppbEncryptParameters,
  __out     PDWORD pcbEncryptParameters
);

Parameters

  • phCryptProv [in, out]

  • paiEncrypt [in]

  • pvEncryptAuxInfo [in, optional]

  • pPublicKeyInfo [in]

  • pfnAlloc

  • phEncryptKey [out]

  • ppbEncryptParameters [out]

  • pcbEncryptParameters [out]

Remarks

Constant Definition
CMSG_OID_GEN_ENCRYPT_KEY_FUNC "CryptMsgDllGenEncryptKey"

Send comments about this topic to Microsoft

Build date: 10/30/2008