Class TWinReboot (unit WinReboot)

Inherits from

TComponent

TWinReboot component (freeware) by Barry Brannan, September 1997 (barrylb@poboxes.com) Usage: 1. Drop TWinReboot component on a form. 2. Call WinReboot1.WinExit(flags) Where flags must be one of the following: EWX_LOGOFF - Shuts down processes and logs user off EWX_REBOOT - Shuts down the restarts the system EWX_SHUTDOWN - Shuts down system The following attributes may be combined (OR'd) with above flags EWX_POWEROFF - shuts down system and turns off the power. EWX_FORCE - forces processes to terminate. Example: WinReboot1.WinExit(EWX_REBOOT or EWX_FORCE);

Constructors



Functions

function WinExit(flags: integer): boolean;


function SetPrivilege(privilegeName: string; enable: boolean): boolean;


Properties

Events

Variables


Constructors


Functions


function WinExit(flags: integer): boolean;


function SetPrivilege(privilegeName: string; enable: boolean): boolean;


Properties


Events


Variables