Disconnect Presentation Space (2)

Top  Previous  Next

The Disconnect Presentation Space function drops the connection between your EHLLAPI application program and the host presentation space. Also, if a host presentation space is reserved using the Reserve (11) function, it is released upon execution of the Disconnect Presentation Space function.

 

3270

5250

Yes

Yes

 

 

Prerequisite Calls

 

Connect Presentation Space (1)

 

 

Call Parameters

 

 

Standard Interface                              Enhanced Interface

Function Number

Must be 2

Data String

NA

Length

NA

PS Position

NA

 

 

Return Parameters

 

Return Code

Explanation

0

The Disconnect Presentation Space function was successful.

1

Your program was not currently connected to the host presentation space.

9

A system error was encountered.

 

 

Remarks

 

1.After the Disconnect Presentation Space function is called, functions that interact with the host-connected presentation space are no longer valid (for example, the Send Key (3), Wait (4), Reserve (11) and Release (12) functions).
2.Your EHLLAPI application should disconnect from the host presentation space before exiting.
3.The Disconnect Presentation Space function does not reset the session parameters to the defaults. Your EHLLAPI application must call the Reset System (21) function to accomplish this.