3.17.3 Initialization

An MSMQMessage object can be initialized in two different ways: when it is created by the client application for sending or when it is created during the processing rules of a method provided by one of the interfaces of the MSMQQueue coclass that returns a pointer to an MSMQMessage object, such as the Receive method described in section 3.11.4.1.14.

When a message is created by one of the MSMQQueue coclass methods, unless otherwise stated in the MSMQQueue method, the initialized values for the MSMQMessage object are populated with the corresponding values in the Message that was retrieved from a Queue's MessagePositionList. The default values for the MSMQMessage object which do not have a corresponding value in the Message object are shown in the column labeled "Initial value-MSMQQueue created" in the following table.

The default values when an MSMQMessage object is created by a client application are shown in the column labeled "Initial value-client created" in the following table.

Data element

Initial value-client created

Initial value-MSMQQueue created

LookupIdentifier

(0x00000000)

Identifier

NULL

Class

Normal<99>

PrivacyLevel

None

AuthenticationLevel

None

DeliveryGuarantee

Express

TracingRequested

False

Priority

3

PositiveJournalingRequested

False

NegativeJournalingRequested

False

ResponseQueueFormatName

NULL

ResponseMultiQueueFormatName

NULL

ApplicationTag

NULL

SourceMachineIdentifier

GUID_NULL

{00000000-0000-0000-0000-000000000000}

Body

NULL

AdministrationQueueFormatName

NULL

AdministrationMultiQueueFormatName

NULL

CorrelationIdentifier

NULL

AcknowledgementsRequested

None

Label

NULL

TimeToReachQueue

(0xFFFFFFFF)

TimeToBeReceived

(0xFFFFFFFF)

HashAlgorithm

SHA1

EncryptionAlgorithm

RC4

SentTime

(0xFFFFFFFF)

ArrivedTime

(0xFFFFFFFF)

DestinationQueueFormatName

NULL

SenderCertificate

NULL

SenderIdentifierType

SID

SenderIdentifier

NULL

Extension

NULL

ConnectorTypeIdentifier

GUID_NULL

{00000000-0000-0000-0000-000000000000}

TransactionStatusQueueFormatName

NULL

SymmetricKey

NULL

Signature

NULL

AuthenticationProviderType

(0x00000001)

AuthenticationProviderName

"Microsoft Base Cryptographic Provider, v1.0"

TransactionalMessageSequenceIdentifier

NULL

FirstInTransaction

False

LastInTransaction

False

SoapEnvelope

NULL

SoapCompoundMessage

NULL

RequestedAuthenticationLevel

MQMSG_AUTH_LEVEL_NONE

(0x00000000)

MQMSG_AUTH_LEVEL_NONE

(0x00000000)

SOAPBody

NULL

NULL

SOAPHeader

NULL

NULL

SenderIdentifierCache

NULL

NULL

SenderCertificateCache

NULL

NULL