Lock Presentation Space API (60) |
Top Previous Next |
The Lock Presentation Space 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.
Prerequisite Calls
Connect to Presentation Space (1)
Call Parameters
Data String Contents
Return Parameters
Remarks
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. EHLLAPI functions not listed are run as if there was no lock. 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 Presentation Space API function. If the application exits with outstanding locks, or a Reset System (21), or Disconnect Presentation Space (2) function is issued, the locks are released.
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. |