Lock Window Services API (61)
|Top Previous Next|
The Lock Window Services API function allows the application to obtain or release exclusive control of the presentation space window over other Windows 32-bit applications. While locked, no other application can connect to the presentation space window.
Successful processing of this function with the Lock causes EHLLAPI presentation space window functions requested from other EHLLAPI applications to be queued until the requesting application unlocks the presentation space. Requests from the locking application are processed normally.
Data String Contents
The following EHLLAPI functions are queued when a lock is in effect:
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:
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.