Reset System – Function 21
This function reinitializes the system to its default (start) state:
•  All session options are reset to their defaults.
•  Event notification is stopped.
•  Any reserved sessions are released.
•  Connected sessions are disconnected.
•  The current status of Host sessions is updated.
Prerequisite functions
None.
Function call
WinHLLAPI(RESETSYSTEM,lpbyString,lpwLength,lpwReturnnCode)
Call parameters
Parameter Description
Data String NA
Data Length NA
PS Position NA
Return code
Code Description
WHLLOK The system has been reset.
WHLLSYSERROR The function failed due to a system error.
Remarks
This function is normally used at the beginning and end of a Windows HLLAPI application to reset the system to initial default conditions. This function resets ALL connected sessions owned by the HLLAPI application. As a result, caution is advised when using this function.