--- mstools/samples/deb/debmain.h 2018/08/09 18:20:39 1.1 +++ mstools/samples/deb/debmain.h 2018/08/09 18:21:31 1.1.1.2 @@ -1,4 +1,9 @@ // ************************************************************************ +// +// Microsoft Developer Support +// Copyright (c) 1992 Microsoft Corporation +// +// ************************************************************************ // HEADER : DEBMain.H // PURPOSE : A Win32 Application demonstrating the Debug APIs // FUNCTIONS : @@ -10,51 +15,48 @@ // AboutDlgProc() - processes messages for "About" dialog box // NewListBoxWndProc() - subclass procedure to prevent listbox moving // COMMENTS : +// // ************************************************************************ -#include "DEB.H" // resource and message ids +#ifndef DEBMAIN_H + + #define DEBMAIN_H -//-- function prototypes -LRESULT CALLBACK MainWndProc ( HWND, UINT, WPARAM, LPARAM ); -LRESULT CALLBACK ProcessCommandsWndProc ( HWND, UINT, WPARAM, LPARAM ); -LRESULT CALLBACK NewListBoxWndProc ( HWND, UINT, WPARAM, LPARAM ); -BOOL CALLBACK PreferencesDlgProc ( HWND, UINT, WPARAM, LPARAM ); -LRESULT CALLBACK MainWndProc ( HWND, UINT, WPARAM, LPARAM ); -BOOL CALLBACK AttachDlgProc ( HWND, UINT, WPARAM, LPARAM ); -BOOL CALLBACK AboutDlgProc ( HWND, UINT, WPARAM, LPARAM ); + #ifndef DEB_H + #include "DEB.H" // resource and message ids + #endif -// *********** -// global data -// *********** -extern HWND hWndMain; // main window handle -extern HWND hWndDebugList; // debug event listbox handle -extern HWND hWndTextButtonBar; // windows handle to the text toolbar -extern HINSTANCE hInstance; // instance handle of this EXE -extern LIST ProcessList; // linked list of debugee process information -extern INT ActiveProcesses; // count of active debugee processes -extern TCHAR szAppTitle[32]; // name of the application -extern HANDLE hProcess; // handle to current running debugee process -extern LONG MaxStrLen; // maximum string length in Debug Event listbox + // *********** + // global data + // *********** + extern HWND hWndMain; // main window handle + extern HWND hWndDebugList; // debug event listbox handle + extern HWND hWndTextButtonBar; // windows handle to the text toolbar + extern HINSTANCE hInstance; // instance handle of this EXE + extern TCHAR szAppTitle[32]; // name of the application + extern LONG MaxStrLen; // maximum string length in Debug Event listbox + extern DWORD dwActiveDebugees; // number of active debugees + extern LIST ProcessList; // linked list of debugee process information + extern INT ActiveProcesses; // count of active debugee processes + extern HANDLE hProcess; // handle to current running debugee process -//-- debugee specific data -extern PROCESS_INFORMATION pi; // process information -extern STARTUPINFO si; // debugee startup information + //-- private profile settings + extern int xPos; // application window's horizontal position + extern int yPos; // application window's vertical position + extern int nWidth; // application window's width + extern int nHeight; // application window's height + extern BOOL fMaximized; // flag: maximized state? + extern BOOL fToolBar; // flag: display the ToolBar? + extern BOOL fSaveOnExit; // flag: save settings upon exit? + extern BOOL fSavedDirectory; // flag: use saved directory for opening files? + extern BOOL fClearOnNew; // flag: clears the event listbox on a new debugee + extern BOOL fVerbose; // flag: verbose event listings + extern BOOL fShowSymbols; // flag: show symbols (limited) + extern BOOL fSavePreferences; // flag: save the preferences settings + extern HFONT hFont; // current handle to the Debug Event listbox font + extern LOGFONT LogFont; // current logical font + extern COLORREF rgbColor; // current listbox text foreground color + extern COLORREF rgbBkColor; // current listbox text foreground color + extern LONG DebugMode; // debug mode flag CreateProcess + extern LONG DebugeePriority; // debugee priority CreateProcess -//-- private profile settings -extern int xPos; // application window's horizontal position -extern int yPos; // application window's vertical position -extern int nWidth; // application window's width -extern int nHeight; // application window's height -extern BOOL fMaximized; // flag: maximized state? -extern BOOL fToolBar; // flag: display the ToolBar? -extern BOOL fSaveOnExit; // flag: save settings upon exit? -extern BOOL fSavedDirectory; // flag: use saved directory for opening files? -extern BOOL fClearOnNew; // flag: clears the event listbox on a new debugee -extern BOOL fVerbose; // flag: verbose event listings -extern BOOL fShowSymbols; // flag: show symbols (limited) -extern BOOL fSavePreferences; // flag: save the preferences settings -extern HFONT hFont; // current handle to the Debug Event listbox font -extern LOGFONT LogFont; // current logical font -extern COLORREF rgbColor; // current listbox text foreground color -extern COLORREF rgbBkColor; // current listbox text foreground color -extern LONG DebugMode; // debug mode flag CreateProcess -extern LONG DebugeePriority; // debugee priority CreateProcess +#endif // DEBMAIN_H