//---------------------------------------------------------------------------

#ifndef rtkbtTScriptThreadH
#define rtkbtTScriptThreadH
//---------------------------------------------------------------------------
#include <Classes.hpp>
//---------------------------------------------------------------------------
class WorkerThread : public TThread
{            

        typedef struct tagTHREADNAME_INFO
        {
                DWORD dwType;     // must be 0x1000
                LPCSTR szName;    // pointer to name (in user addr space)
                DWORD dwThreadID; // thread ID (-1=caller thread)
                DWORD dwFlags;    // reserved for future use, must be zero
        } THREADNAME_INFO;


private:


	void SetName();
	void __fastcall ThreadBatteryResistanceCal(void);
	void __fastcall ThreadReadRegLoop(void);
		
	
protected:
        void __fastcall Execute();
public:
        __fastcall WorkerThread(bool CreateSuspended);
	unsigned char ReadRegLoopFlag;

};
//---------------------------------------------------------------------------
#endif
