// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Shutdown.pas' rev: 6.00

#ifndef ShutdownHPP
#define ShutdownHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Shutdown
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TCustomWindowsShutdown;
class PASCALIMPLEMENTATION TCustomWindowsShutdown : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	bool FForce;
	bool __fastcall SetPrivilege(void);
	void __fastcall Suspend(bool Hibernate);
	void __fastcall ExitProc(int Mode);
	
protected:
	__property bool Force = {read=FForce, write=FForce, nodefault};
	
public:
	void __fastcall TurnOffDialog(void);
	void __fastcall Sleep(void);
	void __fastcall Hibernate(void);
	void __fastcall LogOff(void);
	void __fastcall PowerOff(void);
	void __fastcall Reboot(void);
	void __fastcall ShutDown(void);
public:
	#pragma option push -w-inl
	/* TComponent.Create */ inline __fastcall virtual TCustomWindowsShutdown(Classes::TComponent* AOwner) : Classes::TComponent(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TComponent.Destroy */ inline __fastcall virtual ~TCustomWindowsShutdown(void) { }
	#pragma option pop
	
};


class DELPHICLASS TWindowsShutdown;
class PASCALIMPLEMENTATION TWindowsShutdown : public TCustomWindowsShutdown 
{
	typedef TCustomWindowsShutdown inherited;
	
__published:
	__property Force ;
public:
	#pragma option push -w-inl
	/* TComponent.Create */ inline __fastcall virtual TWindowsShutdown(Classes::TComponent* AOwner) : TCustomWindowsShutdown(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TComponent.Destroy */ inline __fastcall virtual ~TWindowsShutdown(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall Register(void);

}	/* namespace Shutdown */
using namespace Shutdown;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Shutdown
