3.1.4.2 Opening and Closing a Session

To open a session, the client MUST do the following, in sequence:

  1. Create an object of ResourceManager COM class.

  2. Acquire pointers to WSRM interfaces by using the IUnknown::QueryInterface method, as described in [MS-DCOM] section 3.1.1.5.8.

  3. Call methods of interest in the interfaces.

To close a session, the client MUST release all of its acquired interface pointers by calling their Release methods.