-
Notifications
You must be signed in to change notification settings - Fork 8
/
MainScript.h
50 lines (47 loc) · 1.87 KB
/
MainScript.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//---------------------------------------------------------------------------
#ifndef MainScriptH
#define MainScriptH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <vector.h>
//---------------------------------------------------------------------------
//incremented ordinary for
#define IFOR(var, value, target) for (int (##var) = value; ##var < target; ##var ++)
//decremented ordinary for
#define DFOR(var, value, target) for (int (##var) = value; ##var >= target; ##var --)
//---------------------------------------------------------------------------
#define FPSPATCH_INSTALL WM_USER + 666
#define FPSPATCH_INFO_REQUEST FPSPATCH_INSTALL + 1
#define FPSPATCH_INFO_ANSWER FPSPATCH_INFO_REQUEST + 1
#define FPSPATCH_ENABLE FPSPATCH_INFO_ANSWER + 1
#define FPSPATCH_DISABLE FPSPATCH_ENABLE + 1
//---------------------------------------------------------------------------
class TFPSPatcher : public TForm
{
__published: // IDE-managed Components
TButton *bt_patch;
TButton *bt_refresh;
TLabel *l_status;
TLabel *Label1;
TLabel *Label2;
TListBox *lb_client_list;
void __fastcall bt_patchClick(TObject *Sender);
void __fastcall lb_client_listClick(TObject *Sender);
void __fastcall bt_refreshClick(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
public: // User declarations
__fastcall TFPSPatcher(TComponent* Owner);
std::vector<HWND> m_client_list;
void __fastcall OnMessagePathInfo(TMessage &Message);
#pragma warn -inl
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(FPSPATCH_INFO_ANSWER, TMessage, OnMessagePathInfo)
END_MESSAGE_MAP(TForm)
};
//---------------------------------------------------------------------------
extern PACKAGE TFPSPatcher *FPSPatcher;
//---------------------------------------------------------------------------
#endif