CryptEncryptMessage (crypt32)
Last changed: chadich@yahoo.com-65.199.113.40

.
Summary
The CryptEncryptMessage function encrypts and encodes a message.

C# Signature:

[DllImport("crypt32.dll", SetLastError=true)]
public static extern bool CryptEncryptMessage(
    ref CRYPT_ENCRYPT_MESSAGE_PARA pDecryptPara,
    int cRecipientCert,
    [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] rgpRecipientCert,
    byte[] pbToBeEncrypted,
    int cbToBeEncrypted,
    [In, Out] byte[] pbEncryptedBlob,
    ref int pcbEncryptedBlob);

VB Signature:

Declare Function CryptEncryptMessage Lib "crypt32.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation