This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplug_sharedex.h
61 lines (52 loc) · 1.68 KB
/
plug_sharedex.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
51
52
53
54
55
56
57
58
59
60
61
#ifndef PLUGSHAREDEX_H
#define PLUGSHAREDEX_H
#pragma pack(push, 1)
struct sPlugInfo {
char file [101];
char version [51];
char company [101];
char name [201];
char info [256];
char url [256];
int load;
bool isNew;
};
// Dodatkowe , specjalne f-cje sterujace .. Adres tej struktury podawany jest
// tylko do ui.dll
class cCtrlEx : public cCtrl {
public:
virtual void b0(void){};
virtual void b1(void){};
virtual void b2(void){};
virtual void b3(void){};
virtual void b4(void){};
virtual void b5(void){};
virtual void b6(void){};
virtual void b7(void){};
virtual void b8(void){};
virtual void b9(void){};
virtual void bA(void){};
virtual void bB(void){};
//virtual void bC(void){};
//virtual void bD(void){};
//virtual void bE(void){};
virtual void __stdcall PlugOut(unsigned int id , const char * reason , bool restart = 1){};
///< Wy³¹cza wtyczkê (i program , jeœli restart==1 , pyta czy restartowac)
};
struct exception_plug {
const char * msg;
unsigned int id;
unsigned int severity;
exception_plug(const char * msg , unsigned int id , unsigned int severity):msg(msg),id(id),severity(severity) {}
};
#ifdef _STRING_
struct exception_plug2 {
std::string msg;
unsigned int id;
unsigned int severity;
exception_plug2(std::string msg , unsigned int id , unsigned int severity):msg(msg),id(id),severity(severity) {}
};
#endif
#define CNT_INTERNAL_adding 1
#pragma pack(pop)
#endif