// CodeGear C++Builder
// Copyright (c) 1995, 2013 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'wclErrors.pas' rev: 26.00 (Windows)

#ifndef WclerrorsHPP
#define WclerrorsHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <Winapi.msxml.hpp>	// Pascal unit
#include <System.SysUtils.hpp>	// Pascal unit
#include <wclSync.hpp>	// Pascal unit
#include <Winapi.MSXMLIntf.hpp>	// Pascal unit

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

namespace Wclerrors
{
//-- type declarations -------------------------------------------------------
struct DECLSPEC_DRECORD TwclErrorDetails
{
public:
	int Error;
	System::UnicodeString Framework;
	System::UnicodeString Category;
	System::UnicodeString Constant;
	System::UnicodeString Description;
};


class DELPHICLASS TwclErrorInformation;
class PASCALIMPLEMENTATION TwclErrorInformation : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	bool FComInitialized;
	Wclsync::TwclCriticalSection* FCS;
	_di_IXMLDOMDocument FDocument;
	_di_IXMLDOMElement FRootElement;
	_di_IXMLDOMNodeList FFrameworks;
	bool __fastcall GetFrameworksNodes(void);
	bool __fastcall GetRootElement(void);
	bool __fastcall LoadDocument(const System::UnicodeString FileName);
	bool __fastcall GetAttributeText(const _di_IXMLDOMNode Node, const System::UnicodeString AttributeName, /* out */ System::UnicodeString &Text);
	bool __fastcall ErrorFound(const _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 System::UnicodeString FileName);
	bool __fastcall GetDetails(const int Error, TwclErrorDetails &Details);
	__property bool Opened = {read=GetOpened, nodefault};
};


class DELPHICLASS wclException;
class PASCALIMPLEMENTATION wclException : public System::Sysutils::Exception
{
	typedef System::Sysutils::Exception inherited;
	
public:
	/* Exception.Create */ inline __fastcall wclException(const System::UnicodeString Msg) : System::Sysutils::Exception(Msg) { }
	/* Exception.CreateFmt */ inline __fastcall wclException(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size) : System::Sysutils::Exception(Msg, Args, Args_Size) { }
	/* Exception.CreateRes */ inline __fastcall wclException(NativeUInt Ident)/* overload */ : System::Sysutils::Exception(Ident) { }
	/* Exception.CreateRes */ inline __fastcall wclException(System::PResStringRec ResStringRec)/* overload */ : System::Sysutils::Exception(ResStringRec) { }
	/* Exception.CreateResFmt */ inline __fastcall wclException(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size)/* overload */ : System::Sysutils::Exception(Ident, Args, Args_Size) { }
	/* Exception.CreateResFmt */ inline __fastcall wclException(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size)/* overload */ : System::Sysutils::Exception(ResStringRec, Args, Args_Size) { }
	/* Exception.CreateHelp */ inline __fastcall wclException(const System::UnicodeString Msg, int AHelpContext) : System::Sysutils::Exception(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ inline __fastcall wclException(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size, int AHelpContext) : System::Sysutils::Exception(Msg, Args, Args_Size, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclException(NativeUInt Ident, int AHelpContext)/* overload */ : System::Sysutils::Exception(Ident, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclException(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : System::Sysutils::Exception(ResStringRec, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall wclException(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : System::Sysutils::Exception(ResStringRec, Args, Args_Size, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall wclException(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : System::Sysutils::Exception(Ident, Args, Args_Size, AHelpContext) { }
	/* Exception.Destroy */ inline __fastcall virtual ~wclException(void) { }
	
};


class DELPHICLASS wclEInvalidArgument;
class PASCALIMPLEMENTATION wclEInvalidArgument : public wclException
{
	typedef wclException inherited;
	
public:
	/* Exception.Create */ inline __fastcall wclEInvalidArgument(const System::UnicodeString Msg) : wclException(Msg) { }
	/* Exception.CreateFmt */ inline __fastcall wclEInvalidArgument(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size) : wclException(Msg, Args, Args_Size) { }
	/* Exception.CreateRes */ inline __fastcall wclEInvalidArgument(NativeUInt Ident)/* overload */ : wclException(Ident) { }
	/* Exception.CreateRes */ inline __fastcall wclEInvalidArgument(System::PResStringRec ResStringRec)/* overload */ : wclException(ResStringRec) { }
	/* Exception.CreateResFmt */ inline __fastcall wclEInvalidArgument(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size)/* overload */ : wclException(Ident, Args, Args_Size) { }
	/* Exception.CreateResFmt */ inline __fastcall wclEInvalidArgument(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size)/* overload */ : wclException(ResStringRec, Args, Args_Size) { }
	/* Exception.CreateHelp */ inline __fastcall wclEInvalidArgument(const System::UnicodeString Msg, int AHelpContext) : wclException(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ inline __fastcall wclEInvalidArgument(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size, int AHelpContext) : wclException(Msg, Args, Args_Size, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclEInvalidArgument(NativeUInt Ident, int AHelpContext)/* overload */ : wclException(Ident, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclEInvalidArgument(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : wclException(ResStringRec, AHelpContext) { }
	/* 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) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall wclEInvalidArgument(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : wclException(Ident, Args, Args_Size, AHelpContext) { }
	/* Exception.Destroy */ inline __fastcall virtual ~wclEInvalidArgument(void) { }
	
};


class DELPHICLASS wclEOutOfMemory;
class PASCALIMPLEMENTATION wclEOutOfMemory : public wclException
{
	typedef wclException inherited;
	
public:
	/* Exception.Create */ inline __fastcall wclEOutOfMemory(const System::UnicodeString Msg) : wclException(Msg) { }
	/* Exception.CreateFmt */ inline __fastcall wclEOutOfMemory(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size) : wclException(Msg, Args, Args_Size) { }
	/* Exception.CreateRes */ inline __fastcall wclEOutOfMemory(NativeUInt Ident)/* overload */ : wclException(Ident) { }
	/* Exception.CreateRes */ inline __fastcall wclEOutOfMemory(System::PResStringRec ResStringRec)/* overload */ : wclException(ResStringRec) { }
	/* Exception.CreateResFmt */ inline __fastcall wclEOutOfMemory(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size)/* overload */ : wclException(Ident, Args, Args_Size) { }
	/* Exception.CreateResFmt */ inline __fastcall wclEOutOfMemory(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size)/* overload */ : wclException(ResStringRec, Args, Args_Size) { }
	/* Exception.CreateHelp */ inline __fastcall wclEOutOfMemory(const System::UnicodeString Msg, int AHelpContext) : wclException(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ inline __fastcall wclEOutOfMemory(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size, int AHelpContext) : wclException(Msg, Args, Args_Size, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclEOutOfMemory(NativeUInt Ident, int AHelpContext)/* overload */ : wclException(Ident, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclEOutOfMemory(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : wclException(ResStringRec, AHelpContext) { }
	/* 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) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall wclEOutOfMemory(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : wclException(Ident, Args, Args_Size, AHelpContext) { }
	/* Exception.Destroy */ inline __fastcall virtual ~wclEOutOfMemory(void) { }
	
};


class DELPHICLASS wclEPowerEvents;
class PASCALIMPLEMENTATION wclEPowerEvents : public wclException
{
	typedef wclException inherited;
	
public:
	/* Exception.Create */ inline __fastcall wclEPowerEvents(const System::UnicodeString Msg) : wclException(Msg) { }
	/* Exception.CreateFmt */ inline __fastcall wclEPowerEvents(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size) : wclException(Msg, Args, Args_Size) { }
	/* Exception.CreateRes */ inline __fastcall wclEPowerEvents(NativeUInt Ident)/* overload */ : wclException(Ident) { }
	/* Exception.CreateRes */ inline __fastcall wclEPowerEvents(System::PResStringRec ResStringRec)/* overload */ : wclException(ResStringRec) { }
	/* Exception.CreateResFmt */ inline __fastcall wclEPowerEvents(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size)/* overload */ : wclException(Ident, Args, Args_Size) { }
	/* Exception.CreateResFmt */ inline __fastcall wclEPowerEvents(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size)/* overload */ : wclException(ResStringRec, Args, Args_Size) { }
	/* Exception.CreateHelp */ inline __fastcall wclEPowerEvents(const System::UnicodeString Msg, int AHelpContext) : wclException(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ inline __fastcall wclEPowerEvents(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size, int AHelpContext) : wclException(Msg, Args, Args_Size, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclEPowerEvents(NativeUInt Ident, int AHelpContext)/* overload */ : wclException(Ident, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall wclEPowerEvents(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : wclException(ResStringRec, AHelpContext) { }
	/* 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) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall wclEPowerEvents(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : wclException(Ident, Args, Args_Size, AHelpContext) { }
	/* Exception.Destroy */ inline __fastcall virtual ~wclEPowerEvents(void) { }
	
};


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

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