The ShareMode method is received by the server in an RPC_REQUEST packet. In response, the server returns a flag that indicates the share mode in which the queue was opened. The share mode specifies whether this instance of the open queue has exclusive access to the queue.

 [propget] HRESULT ShareMode(
   [out, retval] long* plShareMode
 );

plShareMode: A pointer to a long that corresponds to one of the MQSHARE (section 2.2.2.2) enumeration values.

Return Values: The method MUST return S_OK (0x00000000) on success or an implementation-specific error HRESULT on failure.

When processing this call, the server MUST follow these guidelines: