Source file: /~heha/hsn/borg.zip/DASM.H

//	       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 227

#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

//File load/save filters
#define FILTER_NORMAL		1
#define FILTER_RLECOMPRESSED	2

//enum fontselection {ansifont=1,systemfont,courierfont,courierfont10,courierfont12};
typedef byte fontselection;
#define ansifont 1
#define systemfont 2
#define courierfont 3
#define courierfont10 4
#define courierfont12 5
#define userfont 6

// 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;
  word dseg;
  word codedetect;
  COLORREF bgcolor,textcolor,highcolor;
  fontselection font;
  bool readonly;			   // file readonly
  bool winmax;				   // Borg window is maximised - no more used!
};

void StatusMessageNItems(dword nolistitems);
void changemenus(bool HaveProject);
void StatusMessage(char *msg);
//void Thread(PVOID pvoid);

//extern CRITICAL_SECTION cs;
extern HINSTANCE hInst;		// where to get resources
extern HWND MainWnd;		// Main (frame) window holding 3..4 child windows
extern HFONT Font;		// drawing font for disassembly
extern POINT CharBox;
extern globaloptions options;
extern LOGFONT UserFont;
//extern volatile bool KillThread;
extern char winname[];
//extern HANDLE ThreadHandle;
//extern DWORD ThreadId;
//extern volatile bool InThread;
extern char program_name[];
extern TCHAR current_exe_name[MAX_PATH];

#define Status_SetText(hwnd, iPart, uType, szText) \
    PostMessage((hwnd), SB_SETTEXT, (WPARAM) (iPart | uType), (LPARAM) (LPSTR) szText)

#endif
Detected encoding: ASCII (7 bit)2