A client calls the rpc_ACCloseHandle method to close context handles acquired from rpc_QMOpenQueueInternal (section 3.1.4.17).

 HRESULT rpc_ACCloseHandle(
   [in, out] RPC_QUEUE_HANDLE* phQueue
 );

phQueue:  MUST be a context handle acquired from the phQueue out-parameter of the rpc_QMOpenQueueInternal method. On success, the server MUST set this parameter to NULL.

Return Values:  On success, this method MUST return MQ_OK (0x00000000); otherwise, the server MUST return a failure HRESULT,<52> and the client MUST treat all failure HRESULTs identically. Additionally, if a failure HRESULT is returned, the client MUST disregard all out-parameter values.

Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol, as specified in [MS-RPCE].

This method is invoked at the dynamically assigned endpoint returned by the R_QMGetRTQMServerPort (section 3.1.4.24) method when IP_HANDSHAKE (0x00000000) or IPX_HANDSHAKE (0x00000002) is the interface specified by the fIP parameter.

When processing this call, the server MUST: