3.11.4.1.32 IsOpen2 (Opnum 38)
The IsOpen2 method is received by the server in an RPC_REQUEST packet. In response, the server returns a value indicating whether the queue is open.
-
[propget] HRESULT IsOpen2( [out, retval] VARIANT_BOOL* pisOpen );
pisOpen: A pointer to a VARIANT_BOOL that MUST be set to VARIANT_TRUE (0xffff) if the queue is open or VARIANT_FALSE (0x0000) if the queue is closed.
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:
If the IsInitialized instance variable equals False:
Return an error OLE_E_BLANK (0x80040007), and take no further action.
If the IsClosed instance variable equals True:
Set the pisOpen output variable to VARIANT_FALSE (0x0000).
Else:
Set the pisOpen output variable to VARIANT_TRUE (0xffff).
Return S_OK (0x00000000), and take no further action.