//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include "acces32.h" struct CardInfo { AnsiString Name; unsigned long Address; }; #define RegKey "System\\CurrentControlSet\\Services\\NTioPCI\\Parameters" //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TImage *outImage0; TImage *outImage1; TImage *outImage2; TImage *outImage3; TImage *outImage4; TImage *outImage5; TImage *outImage6; TImage *outImage7; TImage *inImage0; TLabel *Label1; TLabel *Label2; TImage *inImage1; TImage *inImage2; TImage *inImage3; TImage *inImage4; TImage *inImage5; TImage *inImage6; TImage *inImage7; TLabel *Label5; TLabel *Label6; TComboBox *DeviceList; TEdit *addrEdit; TButton *goBTN; TMemo *Memo1; TGroupBox *GroupBox1; TImage *Image1; TLabel *Label3; TLabel *Label4; TImage *Image2; TImageList *ImageList1; TTimer *Timer1; void __fastcall outImagesClick(TObject *Sender); void __fastcall Timer1Timer(TObject *Sender); void __fastcall goBTNClick(TObject *Sender); void __fastcall DeviceListChange(TObject *Sender); private: // User declarations Graphics::TBitmap *openBmp, *closedBmp; TImage *inImages[8], *outImages[8]; CardInfo cards[64]; unsigned long BaseAddress; int numCards; char inByte, outByte; void __fastcall getDeviceInfo(); public: // User declarations __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif