www.pudn.com > crestroncontrol.rar > Main.h, change:2006-10-07,size:2298b


//--------------------------------------------------------------------------- 
 
#ifndef MainH 
#define MainH 
//--------------------------------------------------------------------------- 
#include <Classes.hpp> 
#include <Controls.hpp> 
#include <StdCtrls.hpp> 
#include <Forms.hpp> 
#include <ScktComp.hpp> 
#include "IniFiles.hpp" 
#include "UBaseControlMessage.h" 
#include "UProcessMessage.h" 
#include <ExtCtrls.hpp> 
#include "trayicon.h" 
#include "nb30.h" 
#include "stdio.h" 
//--------------------------------------------------------------------------- 
class TFormMain : public TForm 
{ 
__published:	// IDE-managed Components 
    TClientSocket *ClientSocket; 
    TButton *Button1; 
    TTimer *TimerConn; 
    TTrayIcon *TrayIcon1; 
    TLabel *Label1; 
    TLabel *lblState; 
    TButton *Button2; 
    void __fastcall ClientSocketConnect(TObject *Sender, 
          TCustomWinSocket *Socket); 
    void __fastcall FormCreate(TObject *Sender); 
    void __fastcall Button1Click(TObject *Sender); 
    void __fastcall ClientSocketError(TObject *Sender, 
          TCustomWinSocket *Socket, TErrorEvent ErrorEvent, 
          int &ErrorCode); 
    void __fastcall TimerConnTimer(TObject *Sender); 
    void __fastcall ClientSocketDisconnect(TObject *Sender, 
          TCustomWinSocket *Socket); 
    void __fastcall Button2Click(TObject *Sender); 
    void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose); 
    void __fastcall ClientSocketRead(TObject *Sender, 
          TCustomWinSocket *Socket); 
private:	// User declarations 
    TProcessMessage *ProcessMessage; 
public:		// User declarations 
    __fastcall TFormMain(TComponent* Owner); 
    void __fastcall CloseComputer(int closetime, bool Flag); 
    int __fastcall ReadTime(); 
    AnsiString __fastcall ReadIP(); 
    AnsiString __fastcall MessageBuffer(TCCBaseMessage_512 *Msg); 
    bool GetAdapterInfo(int adapter_num, AnsiString &mac_addr); 
    AnsiString __fastcall GetLocalMac(); 
    void SendCommand(AnsiString ClientMac , int Class); 
}; 
//--------------------------------------------------------------------------- 
extern PACKAGE TFormMain *FormMain; 
int execProcessMessage(TCCBaseMessage *ccBaseMessage); 
//--------------------------------------------------------------------------- 
#endif