MSMQMessage.HashAlgorithm (Compact 2013)

3/26/2014

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

See Also

Reference

MSMQMessage