|
|
1.1 root 1: // ************************************************************************ 1.1.1.2 ! root 2: // ! 3: // Microsoft Developer Support ! 4: // Copyright (c) 1992 Microsoft Corporation ! 5: // ! 6: // ************************************************************************ 1.1 root 7: // HEADER : DEBMain.H 8: // PURPOSE : A Win32 Application demonstrating the Debug APIs 9: // FUNCTIONS : 10: // WinMain() - application entry point 11: // MainWndProc() - processes messages 12: // ProcessCommandsWndProc() - processes WM_COMMAND messages 13: // PreferencesDlgProc() - processes messages for "Preferences" dialog box 14: // AttachDlgProc() - processes messages for "Attach" dialog box 15: // AboutDlgProc() - processes messages for "About" dialog box 16: // NewListBoxWndProc() - subclass procedure to prevent listbox moving 17: // COMMENTS : 1.1.1.2 ! root 18: // 1.1 root 19: // ************************************************************************ 1.1.1.2 ! root 20: #ifndef DEBMAIN_H ! 21: ! 22: #define DEBMAIN_H 1.1 root 23: 1.1.1.2 ! root 24: #ifndef DEB_H ! 25: #include "DEB.H" // resource and message ids ! 26: #endif 1.1 root 27: 1.1.1.2 ! root 28: // *********** ! 29: // global data ! 30: // *********** ! 31: extern HWND hWndMain; // main window handle ! 32: extern HWND hWndDebugList; // debug event listbox handle ! 33: extern HWND hWndTextButtonBar; // windows handle to the text toolbar ! 34: extern HINSTANCE hInstance; // instance handle of this EXE ! 35: extern TCHAR szAppTitle[32]; // name of the application ! 36: extern LONG MaxStrLen; // maximum string length in Debug Event listbox ! 37: extern DWORD dwActiveDebugees; // number of active debugees ! 38: extern LIST ProcessList; // linked list of debugee process information ! 39: extern INT ActiveProcesses; // count of active debugee processes ! 40: extern HANDLE hProcess; // handle to current running debugee process 1.1 root 41: 1.1.1.2 ! root 42: //-- private profile settings ! 43: extern int xPos; // application window's horizontal position ! 44: extern int yPos; // application window's vertical position ! 45: extern int nWidth; // application window's width ! 46: extern int nHeight; // application window's height ! 47: extern BOOL fMaximized; // flag: maximized state? ! 48: extern BOOL fToolBar; // flag: display the ToolBar? ! 49: extern BOOL fSaveOnExit; // flag: save settings upon exit? ! 50: extern BOOL fSavedDirectory; // flag: use saved directory for opening files? ! 51: extern BOOL fClearOnNew; // flag: clears the event listbox on a new debugee ! 52: extern BOOL fVerbose; // flag: verbose event listings ! 53: extern BOOL fShowSymbols; // flag: show symbols (limited) ! 54: extern BOOL fSavePreferences; // flag: save the preferences settings ! 55: extern HFONT hFont; // current handle to the Debug Event listbox font ! 56: extern LOGFONT LogFont; // current logical font ! 57: extern COLORREF rgbColor; // current listbox text foreground color ! 58: extern COLORREF rgbBkColor; // current listbox text foreground color ! 59: extern LONG DebugMode; // debug mode flag CreateProcess ! 60: extern LONG DebugeePriority; // debugee priority CreateProcess 1.1 root 61: 1.1.1.2 ! root 62: #endif // DEBMAIN_H
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.