Export (0) Print
Expand All

Computer Property Structures

The MQQMPROPS and MQPRIVATEPROPS structures, shown below, include a property count member to indicate the number of properties included in each structure, an array that identifies each property (aPropID), an array that specifies the value of each property (aPropVar), and an array for the returned status of each property (aStatus). Position i in each of the three arrays contains information about a single property.

The MQQMPROPS structure is defined as follows.

typedef struct tagMQQMPROPS
{
  DWORD          cProp;
  QUEUEPROPID    *aPropID;
  MQPROPVARIANT  *aPropVar;
  HRESULT        *aStatus;
} MQQMPROPS;

The MQQMPROPS structure is used in calls to MQGetMachineProperties.

The MQPRIVATEPROPS structure is defined as follows.

typedef struct tagMQPRIVATEPROPS
{
  DWORD          cProp;
  QUEUEPROPID    *aPropID;
  MQPROPVARIANT  *aPropVar;
  HRESULT        *aStatus;
} MQPRIVATEPROPS;

The MQPRIVATEPROPS structure is used in calls to MQGetPrivateComputerInformation.

aPropID, aPropVar, and aStatus

The following illustration shows how Message Queuing uses the data in these three arrays. Note that for each property the corresponding elements of the aPropID array and aPropVar array must be set to the property identifier and value, respectively.

<No Change>

When setting computer properties, if a property is set to the same value more than once, Message Queuing uses the first entry in the aPropVar array and discards all the subsequent entries. In the aStatus array, an information error value of MQ_INFORMATION_DUPLICATE_PROPERTY is returned for each discarded entry.

Show:
© 2014 Microsoft