3.11.3 Initialization

An MSMQQueue object MUST be instantiated and initialized by the server as a result of an invocation of the MSMQQueueInfo::Open method.

Initialization via an MSMQQueueInfo::Open call results in the following:

  • The OpenQueueDescriptor instance variable is set to the reference to the OpenQueueDescriptor returned by the Open Queue Event.

  • Cursor.CursorState is SET to Unread:

  • The IsClosed instance variable is set to False.

  • The IsInitialized instance variable is set to True.

  • The MSMQQueueInfoObject instance variable is set to the MSMQQueueInfo object instance that created this object instance.

If the client instantiated the MSMQQueue coclass directly, the server MUST initialize the object as follows:

  • The OpenQueueDescriptor instance variable is set to NULL.

  • The IsClosed instance variable is set to True.

  • The IsInitialized instance variable is set to False.