2.2.1.2 MGMT_OBJECT

The MGMT_OBJECT structure defines information on a queue, a computer, or a session. The structure includes an embedded discriminated union.

 typedef struct _MGMT_OBJECT {
   MgmtObjectType type;
   [switch_is(type)] union {
     [case(MGMT_QUEUE)] 
       QUEUE_FORMAT* pQueueFormat;
     [case(MGMT_MACHINE)] 
       DWORD Reserved1;
     [case(MGMT_SESSION)] 
       DWORD Reserved2;
   };
 } MGMT_OBJECT;

type: An integer discriminator for the embedded discriminated union. The value of this field MUST be 1, 2, or 3, as specified in section 2.2.2.1.

pQueueFormat: A pointer to a QUEUE_FORMAT ([MS-MQMQ] section 2.2.7) structure that describes the type of the queue.

Reserved1: A 32-bit unsigned integer.<5>

Reserved2: A 32-bit unsigned integer.<6>