CRT Documentation: Reference

RestoreCrtState

[This function does not have a corresponding DOS function.]

Restores the state of the console to a previously saved state.

function RestoreCrtState(
  var SaveState: pointer
): boolean;

Parameters

SaveState
[in, out] State to restore and free memory allocated to.

Return Values

True if successful, False on failure.

Remarks

This function restores the console state to the state specified in SaveState. SaveState should be initialized using SaveCrtState. On success, the memory allocated is also freed.

If you merely want to release the memory allocated from a call to SaveCrtState, simply use FreeCrtState.

See Also

Crt Overview, SaveCrtState, FreeCrtState