MSMQMessage.EncryptAlgorithm (Windows Embedded CE 6.0)
1/6/2010
The EncryptAlgorithm property of the MSMQMessage object specifies the encryption algorithm used to encrypt the message body of a private message.
Syntax
HRESULT get_EncryptAlgorithm(
long* plEncryptAlg
);
HRESULT put_EncryptAlgorithm(
long lEncryptAlg
);
Parameters
plEncryptAlg or lEncryptAlg
Encryption algorithm used to encrypt the message body of a private message.The following table describes the EncryptAlg property values.
Value Description MQMSG_CALG_RC2
Default.
MQMSG_CALG_RC4
Message encryption is based on public-key encryption using the Microsoft® Cryptographic API with an underlying RSA provider.
Remarks
When sending private messages, Message Queuing uses the algorithm specified by MSMQMessage.EncryptAlgorithm to encrypt the body of the message and to decrypt the message body when it is received by the receiving queue manager.
Message can be encrypted by Message Queuing and by applications.
Equivalent Function Property
When using function calls, the encryption algorithm can be set and retrieved using the PROPID_M_ENCRYPTION_ALG message property.
Requirements
Header | mqoai.h |
Library | mqoa.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |