// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Reboot.pas' rev: 3.00

#ifndef RebootHPP
#define RebootHPP
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <ShellAPI.hpp>
#include <Options.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Reboot
{
//-- type declarations -------------------------------------------------------
enum TAMNRebootFlags { rfReboot, rfShutDown, rfLogOff };

typedef int TAMNRebootFlagsSet[3];

class DELPHICLASS TAMNReboot;
class PASCALIMPLEMENTATION TAMNReboot : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	TAMNRebootFlags fRebootFlag;
	bool fConfirmReboot;
	System::AnsiString fMessageText;
	System::AnsiString fMessageCaption;
	Classes::TNotifyEvent fOnError;
	System::AnsiString __fastcall GetVersion(void);
	void __fastcall SetVersion(const System::AnsiString Val);
	
public:
	bool __fastcall Execute(void);
	__fastcall virtual TAMNReboot(Classes::TComponent* AOwner);
	__fastcall virtual ~TAMNReboot(void);
	
__published:
	__property TAMNRebootFlags RebootFlag = {read=fRebootFlag, write=fRebootFlag, default=1};
	__property bool ConfirmReboot = {read=fConfirmReboot, write=fConfirmReboot, default=0};
	__property System::AnsiString MessageText = {read=fMessageText, write=fMessageText};
	__property System::AnsiString MessageCaption = {read=fMessageCaption, write=fMessageCaption};
	__property Classes::TNotifyEvent OnError = {read=fOnError, write=fOnError};
	__property System::AnsiString Version = {read=GetVersion, write=SetVersion};
};

//-- var, const, procedure ---------------------------------------------------

}	/* namespace Reboot */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Reboot;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// Reboot
