63 lines
2.0 KiB
C++
63 lines
2.0 KiB
C++
|
|
//---------------------------------------------------------------------------
|
|
|
|
#ifndef mainGUIH
|
|
#define mainGUIH
|
|
//---------------------------------------------------------------------------
|
|
#include <Classes.hpp>
|
|
#include <Controls.hpp>
|
|
#include <StdCtrls.hpp>
|
|
#include <Forms.hpp>
|
|
#include <ComCtrls.hpp>
|
|
#include <Grids.hpp>
|
|
#include <Buttons.hpp>
|
|
//---------------------------------------------------------------------------
|
|
struct AP {
|
|
AnsiString IP;
|
|
AnsiString user;
|
|
AnsiString pass;
|
|
AnsiString wep;
|
|
AnsiString status;
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
class TForm1 : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TPageControl *PageControl1;
|
|
TTabSheet *TabSheet1;
|
|
TButton *Button1;
|
|
TEdit *newWEP;
|
|
TLabel *Label2;
|
|
TEdit *currWEP;
|
|
TLabel *Label1;
|
|
TTabSheet *TabSheet2;
|
|
TStringGrid *StringGrid1;
|
|
TBitBtn *generarClaveWEP;
|
|
TLabel *hexWEP;
|
|
TLabel *currHexWEP;
|
|
void __fastcall FormShow(TObject *Sender);
|
|
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
|
|
void __fastcall StringGrid1DrawCell(TObject *Sender, int ACol,
|
|
int ARow, TRect &Rect, TGridDrawState State);
|
|
void __fastcall generarClaveWEPClick(TObject *Sender);
|
|
void __fastcall newWEPChange(TObject *Sender);
|
|
void __fastcall Button1Click(TObject *Sender);
|
|
private: // User declarations
|
|
AP *APs;
|
|
|
|
AnsiString __fastcall wepASCII2HEX(AnsiString txt);
|
|
|
|
public: // User declarations
|
|
__fastcall TForm1(TComponent* Owner);
|
|
|
|
void __fastcall MyWndProc(Messages::TMessage &Message);
|
|
|
|
bool __fastcall updateRouter(AnsiString IP, AnsiString user, AnsiString pass, AnsiString WEP);
|
|
|
|
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
extern PACKAGE TForm1 *Form1;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|