4 Protocol Examples

The following example pseudocode demonstrates how to pause a public queue by using the R_QMMgmtAction method.

 /////////////////////////////////////////////////////////////////////
 INIT qf of type QUEUE_FORMAT
 INIT mgmtObj of type MGMT_OBJECT
  
 SET qf.m_qft to QUEUE_FORMAT_TYPE_PUBLIC
 SET qf.m_SuffixAndFlags to 0
 SET qf.m_gPublicID to GUID of the public queue
  
 SET mgmtObj.type to MGMT_QUEUE;
 SET mgmtObj.pQueueFormat to qf;
  
 CALL R_QMMgmtAction with RPC binding handle, mgmtObj
      and action const "PAUSE"
 /////////////////////////////////////////////////////////////////////