-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dasm.h
63 lines (52 loc) · 1.56 KB
/
Dasm.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
62
63
// DASM.H
#ifndef dasmh
#define dasmh
#include "common.h"
#define WM_MAXITOUT (WM_USER+100)
#define WM_REPEATNAMEVIEW (WM_USER+101)
#define WM_REPEATXREFVIEW (WM_USER+102)
#define BORG_VER 228
#define CD_PUSHBP 1
#define CD_ENTER 2
#define CD_MOVBX 4
#define CD_AGGRESSIVE 8
#define CD_EAXFROMESP 16
#define CD_MOVEAX 32
#define VERTSCROLLRANGE 16000
enum fontselection {ansifont=1,systemfont,courierfont,courierfont10,courierfont12};
// nb changing this options structure will change the file database structure
struct globaloptions
{ bool loaddebug;
bool mode16,mode32;
bool loaddata,loadresources;
bool demangle;
bool cfa;
dword processor;
lptr loadaddr,oep;
word dseg;
word codedetect;
COLORREF bgcolor,textcolor,highcolor;
fontselection font;
bool readonly; // file readonly
bool winmax; // Borg window is maximised
};
void StatusMessageNItems(dword nolistitems);
void changemenus(void);
void StatusMessage(char *msg);
void Thread(PVOID pvoid);
extern CRITICAL_SECTION cs;
extern HINSTANCE hInst;
extern HWND mainwindow;
extern globaloptions options;
extern RECT mainwnd;
extern volatile bool KillThread;
extern char winname[];
extern HFONT cf;
extern HANDLE ThreadHandle;
extern DWORD ThreadId;
extern volatile bool InThread;
extern char program_name[];
extern char current_exe_name[];
#define Status_SetText(hwnd, iPart, uType, szText) \
PostMessage((hwnd), SB_SETTEXT, (WPARAM) (iPart | uType), (LPARAM) (LPSTR) szText)
#endif