INtime SDK Help
lncDoRestart

Acts according to the current restart value.


DWORD lncDoRestart(
BOOLEAN bSilent,
HWND hWnd);

Parameters

bSilent
(in) indicates if silent mode is required.
hWnd
HWND of the window that is to be locked by the message box, if any

Return values

Zero for success.

Remarks

Depending on the current restart value, the following actions are taken:

LNCR_NONE
no action.
LNCR_INTIME
all local INtime kernels are restarted; if that is successful, the restart value is reset to LNRC_NONE.
LNCR_WINDOWS
If bSilent is FALSE or the user selects Yes in the restart dialog, Windows is restarted. If that succeeds, the function does not return. The restart value is not changed; it is only reset to LNCR_NONE on a system restart. If bSilent is FALSE and the user does not select Yes, the function returns and the restart value is not changed.

Errors

None

Requirements

Versions Defined in Include Link to
INtime 5.2 intime/nt/include/lnc.h lnc.h lnc.lib
See Also

LNC