3.1.4.2 Opening and Closing a Session
To open a session, the client MUST do the following, in sequence:
Create an object of ResourceManager COM class.
Acquire pointers to WSRM interfaces by using the IUnknown::QueryInterface method, as described in [MS-DCOM] section 3.1.1.5.8.
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.