/
Crimson2/alias/
Crimson2/area.tmp/
Crimson2/area.tmp/AnomalySpaceDock/
Crimson2/area.tmp/AnomalyStation/
Crimson2/area.tmp/AntHill/
Crimson2/area.tmp/ArcticTerrarium/
Crimson2/area.tmp/BuilderCity/
Crimson2/area.tmp/Dungeon/
Crimson2/area.tmp/MiningDock/
Crimson2/area.tmp/PipeSystem/
Crimson2/area.tmp/RattArea/
Crimson2/area.tmp/RobotFactory/
Crimson2/area.tmp/SilverDale/
Crimson2/area.tmp/StarshipFearless/
Crimson2/area.tmp/StationConduits/
Crimson2/area.tmp/TerrariumAlpha/
Crimson2/area.tmp/TerrariumBeta/
Crimson2/area.tmp/TestArea/
Crimson2/area.tmp/Void/
Crimson2/area/
Crimson2/area/AnomalySpaceDock/
Crimson2/area/AnomalyStation/
Crimson2/area/MiningDock/
Crimson2/area/PipeSystem/
Crimson2/area/SilverDale/
Crimson2/area/StationConduits/
Crimson2/area/Void/
Crimson2/board/
Crimson2/clone/
Crimson2/lib/
Crimson2/mole/
Crimson2/mole/mole_src/HELP/
Crimson2/player/
Crimson2/util/
Crimson2/wldedit/
Crimson2/wldedit/res/
// molem.h identifier: aa

/* Window class names */
#define AA_WIND_CLASS_NAME "MOLE_Window"

#define AAFILENAME_MAX_LENGTH 200  /* used everywhere as the max length of a file name. Very Important!*/

/* user-defined window messages */
#define WM_USER_OPENHOST_UPDATE   WM_USER+0x0001
#define WM_USER_CONNECT_CONNECT   WM_USER+0x0002
#define WM_USER_HOST_SOCKET       WM_USER+0x0003 /* socket state has changed! */
#define WM_USER_LOGIN_IDENTIFIED  WM_USER+0x0004 /* for use with login dialog box */
#define WM_USER_LOGIN_COMPLETE    WM_USER+0x0005 /* for use with login dialog box */
#define WM_USER_TERMINAL_INPUT    WM_USER+0x0006 /* There's terminal input ready for reading */
#define WM_USER_AREALIST_CHNG     WM_USER+0x0007 /* general-purpose "something has changed - maybe new data, maybe data deleted */
#define WM_USER_AREALIST_SCROLL   WM_USER+0x0008
#define WM_USER_NEWDATA           WM_USER+0x0009 /* general-purpose "there's new data available" */
#define WM_USER_CHANGEDDATA       WM_USER+0x000A /* for when data has "changed" in existing window. */
#define WM_USER_INITDIALOGSUB     WM_USER+0x000B /* repeatable part of processing for WM_INITDIALOG message */
#define WM_USER_EDITERROR         WM_USER+0x000C /* callback for edit error */

void aaWrapup(void);
BOOL aaInitInstance(LPSTR p_lpCmdLine, int p_nCmdShow);
BOOL aaInitSecondApp(void);
BOOL aaInitApplication(void);
int WINAPI WinMain(HINSTANCE p_hInstance, HINSTANCE p_hPrevInstance,LPSTR p_lpCmdLine, int p_nCmdShow);
void aaAddToDialogPool(HWND p_hWnd);
void aaRemoveFromDialogPool(HWND p_hWnd);
void aaDestroyWindow(HWND p_hWnd); /* encapsulates steps required to delete/destroy a dialog edit window */

extern HINSTANCE  g_aahInst;              /* Handle to main instance data*/
extern HACCEL     g_aahAccTable;          /* handle to accelerator table */
extern char       g_aaWorkingDir[AAFILENAME_MAX_LENGTH]; /* NSCap working directory */
extern HWND       g_aahWnd;               /* Handle to main window */
extern char       g_aaInitFile[AAFILENAME_MAX_LENGTH]; /* .ini file */
extern char       g_aaHelpFile[AAFILENAME_MAX_LENGTH]; /* .hlp file */
extern UINT       g_aaCommDlgHelp;        /* Window message sent by command dialog boxes */