// CodeGear C++Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Wclerrors.pas' rev: 11.00

#ifndef WclerrorsHPP
#define WclerrorsHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Msxml.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Wclsync.hpp>	// Pascal unit

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

namespace Wclerrors
{
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
struct TwclErrorDetails
{
	
public:
	int Error;
	AnsiString Framework;
	AnsiString Category;
	AnsiString Constant;
	AnsiString Description;
} ;
#pragma pack(pop)

class DELPHICLASS TwclErrorInformation;
class PASCALIMPLEMENTATION TwclErrorInformation : public System::TObject 
{
	typedef System::TObject inherited;
	
private:
	bool FComInitialized;
	Wclsync::TwclCriticalSection* FCS;
	Msxml::_di_IXMLDOMDocument FDocument;
	Msxml::_di_IXMLDOMElement FRootElement;
	Msxml::_di_IXMLDOMNodeList FFrameworks;
	bool __fastcall GetFrameworksNodes(void);
	bool __fastcall GetRootElement(void);
	bool __fastcall LoadDocument(const AnsiString FileName);
	bool __fastcall GetAttributeText(const Msxml::_di_IXMLDOMNode Node, const AnsiString AttributeName, /* out */ AnsiString &Text);
	bool __fastcall ErrorFound(const Msxml::_di_IXMLDOMNode Node, const int Error);
	bool __fastcall GetOpened(void);
	
public:
	__fastcall TwclErrorInformation(void);
	__fastcall virtual ~TwclErrorInformation(void);
	bool __fastcall Close(void);
	bool __fastcall Open(const AnsiString FileName);
	bool __fastcall GetDetails(const int Error, TwclErrorDetails &Details);
	__property bool Opened = {read=GetOpened, nodefault};
};


class DELPHICLASS wclException;
class PASCALIMPLEMENTATION wclException : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall wclException(const AnsiString Msg) : Sysutils::Exception(Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall wclException(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall wclException(int Ident)/* overload */ : Sysutils::Exception(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall wclException(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall wclException(const AnsiString Msg, int AHelpContext) : Sysutils::Exception(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall wclException(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall wclException(int Ident, int AHelpContext)/* overload */ : Sysutils::Exception(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall wclException(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~wclException(void) { }
	#pragma option pop
	
};


class DELPHICLASS wclEInvalidArgument;
class PASCALIMPLEMENTATION wclEInvalidArgument : public wclException 
{
	typedef wclException inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall wclEInvalidArgument(const AnsiString Msg) : wclException(Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall wclEInvalidArgument(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : wclException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall wclEInvalidArgument(int Ident)/* overload */ : wclException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall wclEInvalidArgument(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : wclException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall wclEInvalidArgument(const AnsiString Msg, int AHelpContext) : wclException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall wclEInvalidArgument(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : wclException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall wclEInvalidArgument(int Ident, int AHelpContext)/* overload */ : wclException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall wclEInvalidArgument(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : wclException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~wclEInvalidArgument(void) { }
	#pragma option pop
	
};


class DELPHICLASS wclEOutOfMemory;
class PASCALIMPLEMENTATION wclEOutOfMemory : public wclException 
{
	typedef wclException inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall wclEOutOfMemory(const AnsiString Msg) : wclException(Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall wclEOutOfMemory(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : wclException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall wclEOutOfMemory(int Ident)/* overload */ : wclException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall wclEOutOfMemory(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : wclException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall wclEOutOfMemory(const AnsiString Msg, int AHelpContext) : wclException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall wclEOutOfMemory(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : wclException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall wclEOutOfMemory(int Ident, int AHelpContext)/* overload */ : wclException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall wclEOutOfMemory(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : wclException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~wclEOutOfMemory(void) { }
	#pragma option pop
	
};


class DELPHICLASS wclEPowerEvents;
class PASCALIMPLEMENTATION wclEPowerEvents : public wclException 
{
	typedef wclException inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall wclEPowerEvents(const AnsiString Msg) : wclException(Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall wclEPowerEvents(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : wclException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall wclEPowerEvents(int Ident)/* overload */ : wclException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall wclEPowerEvents(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : wclException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall wclEPowerEvents(const AnsiString Msg, int AHelpContext) : wclException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall wclEPowerEvents(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : wclException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall wclEPowerEvents(int Ident, int AHelpContext)/* overload */ : wclException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall wclEPowerEvents(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : wclException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~wclEPowerEvents(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint WCL_E_SUCCESS = 0x0;
static const int WCL_E_BASE = 0x10000;
static const int WCL_E_INVALID_ARGUMENT = 0x10000;
static const int WCL_E_OUT_OF_MEMORY = 0x10001;
static const int WCL_E_MR_BASE = 0x11000;
static const int WCL_E_MR_CLOSED = 0x11000;
static const int WCL_E_MR_OPENED = 0x11001;
static const int WCL_E_MR_NOT_OPENED = 0x11002;
static const int WCL_E_MR_UNABLE_SYNCHRONIZE = 0x11003;
static const int WCL_E_MR_UNABLE_REGISTER_SYNC_OBJ = 0x11004;
static const int WCL_E_MR_UNABLE_CREATE_SYNC_OBJ = 0x11005;
static const int WCL_E_MR_SYNC_OBJ_NOT_CREATED = 0x11006;
static const int WCL_E_MR_INVALID_THREAD = 0x11007;
static const int WCL_E_MR_UNABLE_CREATE_TERM_EVENT = 0x11008;
static const int WCL_E_MR_INVALID_MESSAGE_PROCESSING_METHOD = 0x11009;
static const int WCL_E_MB_BASE = 0x12000;
static const int WCL_E_MB_RECEIVER_ALREADY_SUBSCRIBED = 0x12000;
static const int WCL_E_MB_RECEIVER_NOT_SUBSCRIBED = 0x12001;
static const int WCL_E_MB_CAN_NOT_INIT_HW_THREAD = 0x12002;
static const int WCL_E_MB_CAN_NOT_START_HW_THREAD = 0x12003;
static const int WCL_E_MB_UNABLE_CREATE_HW_OBJ = 0x12004;
static const int WCL_E_MB_UNABLE_REGISTER_HW_NOTIFY = 0x12005;
static const int WCL_E_MB_UNABLE_CREATE_MUTEX = 0x12006;
static const int WCL_E_MB_NOT_CREATED = 0x12007;
static const int WCL_E_MB_REF_COUNT_ERROR = 0x12008;
static const int WCL_E_MB_RUNNING = 0x12009;
static const int WCL_E_MB_INVALID_SYNC_METHOD = 0x1200a;
static const int WCL_E_MB_WAIT_TIMEOUT = 0x1200b;
static const int WCL_E_MB_WAIT_FAILED = 0x1200c;
static const int WCL_E_MB_RECEIVER_NOT_FOUND = 0x1200d;
static const int WCL_E_WINRT_BASE = 0x13000;
static const int WCL_E_WINRT_UNABLE_CREATE_MUTEX = 0x13000;
static const int WCL_E_WINRT_UNABLE_LOAD_CORE_DLL = 0x13001;
static const int WCL_E_WINRT_UNABLE_LOAD_STRING_DLL = 0x13002;
static const int WCL_E_WINRT_INIT_FAILED = 0x13003;
static const int WCL_E_WINRT_UNABLE_CREATE_STRING = 0x13004;
static const int WCL_E_WINRT_UNABLE_ACTIVATE_INSTANCE = 0x13005;
static const int WCL_E_WINRT_UNABLE_CREATE_INTERFACE = 0x13006;
static const int WCL_E_WINRT_ASYNC_OPERATION_FAILED = 0x13007;
static const int WCL_E_WINRT_ASYNC_OPERATION_CANCELLED = 0x13008;
static const int WCL_E_WINRT_ASYNC_OPERATION_ERROR = 0x13009;
static const int WCL_E_WINRT_DETACH_BUFFER_FAILED = 0x1300a;
static const int WCL_E_WINRT_ASYNC_OPERATION_TIMEOUT = 0x1300b;
static const int WCL_E_WINUSB_BASE = 0x14000;
static const int WCL_E_WINUSB_UNABLE_CREATE_MUTEX = 0x14000;
static const int WCL_E_WINUSB_UNABLE_LOAD = 0x14001;
static const int WCL_E_WINUSB_NOT_LOADED = 0x14002;
static const int WCL_E_WINUSB_UNEXPECTED = 0x14003;
static const int WCL_E_WINUSB_DEVICE_OPENED = 0x14004;
static const int WCL_E_WINUSB_DEVICE_CLOSED = 0x14005;
static const int WCL_E_WINUSB_DEVICE_NOT_OPENED = 0x14006;
static const int WCL_E_WINUSB_OPEN_DEVICE_FAILED = 0x14007;
static const int WCL_E_WINUSB_INIT_DEVICE_FAILED = 0x14008;
static const int WCL_E_WINUSB_CONTROL_TRANSFER_FAILED = 0x14009;
static const int WCL_E_WINUSB_READ_PIPE_FAILED = 0x1400a;
static const int WCL_E_THREAD_BASE = 0x15000;
static const int WCL_E_THREAD_RUNNING = 0x15000;
static const int WCL_E_THREAD_UNABLE_CREATE_THREAD_INIT_EVENT = 0x15001;
static const int WCL_E_THREAD_UNABLE_CREATE_THREAD = 0x15002;
static const int WCL_E_THREAD_NOT_RUNNING = 0x15003;
static const int WCL_E_THREAD_INVALID_SYNCHRONIZATION = 0x15004;
static const int WCL_E_THREAD_MESSAGE_REGISTRATION_FAILED = 0x15005;
static const int WCL_E_THREAD_WINDOW_CREATION_FAILED = 0x15006;
static const int WCL_E_THREAD_INITIALIZATION_FAILED = 0x15007;
static const int WCL_E_THREAD_UNABLE_CREATE_THREAD_TERM_EVENT = 0x15008;
static const int WCL_E_THREAD_UNABLE_CREATE_THREAD_SYNC_EVENT = 0x15009;
static const int WCL_E_PEM_BASE = 0x16000;
static const int WCL_E_PEM_OPENED = 0x16000;
static const int WCL_E_PEM_CLOSED = 0x16001;
static const int WCL_E_PEM_FEATURE_NOT_SUPPORTED = 0x16002;
static const int WCL_E_PEM_GET_POWER_STATUS_FAILED = 0x16003;
static const int WCL_E_PEM_CREATE_INIT_EVENT_FAILED = 0x16004;
static const int WCL_E_PEM_CREATE_WND_THREAD_FAILED = 0x16005;
static const int WCL_E_PEM_CREATE_WND_FAILED = 0x16006;
static const int WCL_E_CFGMGR_BASE = 0x17000;
static const int WCL_E_CFGMGR_LOAD_FAILED = 0x17000;

}	/* namespace Wclerrors */
using namespace Wclerrors;
#pragma pack(pop)
#pragma option pop

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