Disconnect Window Service (102)
|
Top
Previous
Next
|
The Disconnect Window Service function disconnects the window services connection between the EHLLAPI program and the specified host presentation space window.
Prerequisite Calls
Connect Window Services (101)
Call Parameters
|
Standard Interface
|
Enhanced Interface
|
Function Number
|
Must be 102
|
|
Data String
|
See the following table
|
|
Length
|
1
|
4
|
PS Position
|
NA
|
|
Data String Contents
Byte
|
|
Definition
|
Standard
|
Enhanced
|
|
1
|
1
|
A 1-character presentation space short name (PSID)
|
|
2-4
|
Reserved
|
Return Parameters
Return Code
|
Explanation
|
0
|
The Disconnect Window Service function was successful.
|
1
|
Your program is not connected for Window Services.
|
9
|
A system error occurred.
|
Remarks
1. | After the Disconnect Window Service function has been called, your application no longer manages the presentation space window. |
2. | Before exiting the application, you should request a Disconnect Window Service function for all presentation spaces that have been connected for Presentation Manager(R) services. If the application exits with an outstanding connection for window services, the subsystem cancels the outstanding connection. |
|