Notes on Using This Function

After the Disconnect Window Service function has been called, your application no longer manages the presentation space window.

Before exiting the application, you should request a Disconnect Window Service function for all presentation spaces that have been connected for Presentation Manager® services. If the application exits with an outstanding connection for window services, the subsystem cancels the outstanding connection.