Partager via


MSMQMessage.HashAlgorithm

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The HashAlgorithm property of the MSMQMessage object specifies the hashing algorithm used by Message Queuing when authenticating messages.

Data type: Long
Run-time access: Read/write
Property HashAlgorithm As Long  

Property Value

For MSMQ 1.0 and MSMQ 2.0, this property can be set to MQMSG_CALG_MD2, MQMSG_CALG_MD4, or MQMSG_CALG_MD5 (the default value is MQMSG_CALG_MD5), and for MSMQ 3.0, it can be set to MQMSG_CALG_MD2, MQMSG_CALG_MD4, MQMSG_CALG_MD5, or MQMSG_CALG_SHA1. However, for messages sent to HTTP/HTTPS or multicast addresses, it can be set only to MQMSG_CALG_MD5 or MQMSG_CALG_SHA1 (the default value is MQMSG_CALG_SHA1).

Remarks

The Message Queuing runtime uses the hashing algorithm when creating a digital signature and when authenticating the message. For information on how Message Queuing authenticates messages, see Message Authentication.

Equivalent API Function Property

With API function calls, the equivalent property is PROPID_M_HASH_ALG.

Requirements

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib

See Also

MSMQMessage
PROPID_M_HASH_ALG