MSMQMessage.EncryptAlgorithm (Windows CE 5.0)
The EncryptAlgorithm property of the MSMQMessage object specifies the encryption algorithm used to encrypt the message body of a private message.
HRESULT get_EncryptAlgorithm( long* plEncryptAlg);HRESULT put_EncryptAlgorithm( longlEncryptAlg);
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
OS Versions: Windows CE .NET 4.0 and later.
Header: Mqoai.h.
Link Library: Mqoa.lib.
See Also
MSMQMessage | MSMQMessage.PrivLevel
Send Feedback on this topic to the authors