SenderIdType
MSMQMessage

The SenderIdType property specifies the type of sender identifier found by MSMQ. Currently, the only type of sender identifier available to MSMQ is an SID.

Type: Long
Run time: read-write

Syntax

object.SenderIdType
 
Syntax Element Description
object Message (MSMQMessage) object that defines the message.

Settings

MSMQ sets SenderIdType to one of the following:

MQMSG_SENDERID_TYPE_NONE
SenderId is not attached to the message.
MQMSG_SENDERID_TYPE_SID
The default. The SenderId property contains an SID for the user sending the message.

Remarks

If the sending application does not want MSMQ to send a sender identifier with a message, it can specify MQMSG_SENDERID_TYPE_NONE when sending the message. This suppresses the message's SenderId property.

The receiving application can use SenderIdType to determine what type of sender identifier was attached to the message.

An SID of a local user (a user not logged in to a Microsoft Windows NT domain) is only valid locally. Even if a local user specifies an SID, it is not sent with the message.

QuickInfo

  Windows NT: Requires version 4.0 SP3 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mqoai.h.
  Import Library: Use mqoa.lib.
  Unicode: Defined only as Unicode.