Board index » delphi » Shutting windows down

Shutting windows down

Hi.

Does anyone know of a BP-OWL program which will close windows down
(nicely!) ?

Cheers

--
Medway Information Systems Department

 

Re:Shutting windows down


In article <0WCFUBAP28TyE...@medisd.demon.co.uk>,
Medway Information Systems Department <mille...@medisd.demon.co.uk> says:

Quote
>Does anyone know of a BP-OWL program which will close windows down
>(nicely!) ?

No OWL, only API (and untested!):

program shutdown;

uses WinTypes, WinProcs, Win31;

begin
  if not ExitWindows(0, EW_REBOOTSYSTEM) then
    MessageBox(0, 'One program refused shutting down', 'Shutdown', MB_OK);
end;

Quote

>Cheers

>--
>Medway Information Systems Department

-----------------------------------------------------------------------
  Zweitze de Vries                           zwei...@cyco.nl
  Cyco Software Development
  Handelskade 49
  Rijswijk, Netherlands                      (+31) 70 3954179

Other Threads