#include "resource.h" #define MAXFILESIZE 65536 /* maximum file size (in bytes) that can be loaded */ #define MAXFILENAME 144 /* maximum length of file pathname */ #define MAXCUSTFILTER 40 /* maximum size of custom filter buffer */ int PASCAL WinMain(HINSTANCE, HINSTANCE, LPSTR, int); BOOL InitApplication(HINSTANCE); BOOL InitInstance(HINSTANCE, int); long FAR PASCAL _export MainWndProc(HWND, UINT, WPARAM, LPARAM); BOOL FAR PASCAL _export About(HWND, unsigned, WORD, LONG); BOOL SaveFile(HWND); BOOL QuerySaveFile(HWND); void SetNewBuffer(HWND, HINSTANCE, PSTR); int FAR PASCAL _export AbortProc(HDC, int); int FAR PASCAL _export AbortDlg(HWND, unsigned, WORD, LONG); BOOL PrintDocument(HDC, HWND);