Reset System (21)

Top  Previous  Next

The Reset System function reinitializes EHLLAPI to its starting state. The session parameter options are reset to their defaults. Event notification is stopped. The reserved host session is released. The host presentation space is disconnected. Keystroke intercept is disabled.

 

You can use the Reset System function during initialization or at program termination to reset the system to a known initial condition.

 

3270

5250

Yes

Yes

 

 

Prerequisite Calls

 

There are no prerequisite calls for this function.

 

 

Call Parameters

 

 

Standard Interface

Enhanced Interface

Function Number

Must be 21

 

Data String

NA

 

Length

NA

 

PS Position

NA

 

 

 

Return Parameters

 

Return Code

Definition

0

The Reset System function was successful.

1

EHLLAPI is not loaded.

9

A system error was encountered.

 

 

Remarks

 

For the PC/3270, this function can be used to check whether EHLLAPI is loaded. Place a call to this function at the start of your application and check for a return code of 1.