Notes on Using This Function
The following EHLLAPI functions are queued when a lock is in effect:
- Window Status (104)
- Change Switch List Name (105)
- Change PS Window Name (106)
These queued requests are not serviced until the lock is removed. When the lock is removed, the queued requests are processed in first-in-first-out (FIFO) order.
The requesting application unlocks the presentation space window
by one of the following methods:
- Successfully issuing the Lock Window Services API with the UNLOCK option.
- Disconnecting from the presentation space while still owning the Lock.
- Issuing the Reset System (21) function while still owning the Lock.
- Stopping the application while still owning the Lock.
- Stopping the session.
Before exiting the application, you should Unlock any presentation space windows that have been locked with the Lock Window Services API function. If the application exits with outstanding locks, the subsystem releases the locks.
It is recommended that applications lock the presentation space only for short periods of time and only when exclusive use of the presentation space is required.