MSMQMessage.HashAlgorithm

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This property specifies the hash algorithm used by Message Queuing when authenticating messages.

Syntax

HRESULT get_HashAlgorithm( 
  long* plHashAlg 
);
HRESULT put_HashAlgorithm( 
  long lHashAlg
);

Parameters

  • plHashAlg or lHashAlg
    Hash algorithm used by Message Queuing when authenticating messages. This property can be set to any of the values defined by the ALG_ID data type in Wincrypt.h (the default is CALG_MD5) or in the MSMQ_CALG enumeration.

Return Value

The following table describes the common return values.

Value Description

S_OK

Success

E_INVALIDARG

One or more arguments are invalid

E_NOTIMPL

The function contains no implementation

E_OUTOFMEMORY

Out of memory

Remarks

The Message Queuing run-time code uses the hashing algorithm when creating a digital signature and when authenticating the message.

Requirements

Header mqoai.h
Library mqoa.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

MSMQMessage