The Access method is received by the server in an RPC_REQUEST packet. In response, the server returns a flag that indicates the access mode in which the queue was opened. The access mode specifies whether peek, receive, send, and/or administration operations can be performed.

 [propget] HRESULT Access(
   [out, retval] long* plAccess
 );

plAccess: A pointer to a long that corresponds to one of the MQACCESS (section 2.2.2.3) 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: