|
|
1.1.1.3 ! root 1: ! 2: /******************************************************************************\ ! 3: * This is a part of the Microsoft Source Code Samples. ! 4: * Copyright (C) 1993 Microsoft Corporation. ! 5: * All rights reserved. ! 6: * This source code is only intended as a supplement to ! 7: * Microsoft Development Tools and/or WinHelp documentation. ! 8: * See these sources for detailed information regarding the ! 9: * Microsoft samples programs. ! 10: \******************************************************************************/ ! 11: 1.1.1.2 root 12: #ifndef DEBMAIN_H 13: 14: #define DEBMAIN_H 1.1 root 15: 1.1.1.2 root 16: #ifndef DEB_H 17: #include "DEB.H" // resource and message ids 18: #endif 1.1 root 19: 1.1.1.3 ! root 20: // ******** ! 21: // typedefs ! 22: // ******** ! 23: typedef struct PROFILE_STRUCT { ! 24: INT xPos; // application window's horizontal position ! 25: INT yPos; // application window's vertical position ! 26: INT nWidth; // application window's width ! 27: INT nHeight; // application window's height ! 28: BOOL fMaximized; // flag: maximized state? ! 29: BOOL fMinimized; // flag: minimized state? ! 30: BOOL fToolBar; // flag: display the ToolBar? ! 31: BOOL fSavedDirectory; // flag: use saved directory for opening files? ! 32: TCHAR szInitialDir[MAX_PATH]; // initial directory for debuggees ! 33: LOGFONT LogFont; // current logical font ! 34: COLORREF rgbForeColor; // current listbox text foreground color ! 35: COLORREF rgbBackColor; // current listbox text foreground color ! 36: BOOL fClearOnNew; // flag: clears the event listbox on a new debuggee ! 37: BOOL fVerbose; // flag: verbose event listings ! 38: BOOL fShowSymbols; // flag: show symbols (limited) ! 39: LONG DebugMode; // debug mode flag CreateProcess ! 40: LONG DebuggeePriority; // debuggee priority CreateProcess ! 41: DWORD DebugErrorLevel; // debugger error level ! 42: BOOL fSavePreferences; // flag: save the preferences settings ! 43: BOOL fSaveOnExit; // flag: save settings upon exit? ! 44: } PROFILE, *PPROFILE; ! 45: ! 46: typedef struct GLOBAL_STRUCT { ! 47: HINSTANCE hInstance; // current instance ! 48: HWND hWndMain; // Main window handle ! 49: HWND hWndListBox; // debug event listbox handle ! 50: HWND hWndToolBar; // windows handle to the text toolbar ! 51: WNDPROC OldListBoxWndProc; // original listbox procedure ! 52: TCHAR szAppName[64]; // name of the application ! 53: TCHAR szShortAppName[32]; // short name of the application ! 54: TCHAR szApiFailedMsg[64]; // "A Windows API Failed" message ! 55: LONG MaxStrLen; // maximum string length in Debug Event listbox ! 56: DWORD dwActiveDebuggees; // count of active debuggee processes ! 57: SIZE ClientSize; // client windows size ! 58: SIZE ListBoxSize; // debug event listbox size ! 59: INT ToolBarHeight; // text button bar height ! 60: INT xPosOld; // application window's old horizontal pos ! 61: INT yPosOld; // application window's old vertical pos ! 62: HICON hIconCurrent; // handle to the current animated icon ! 63: UINT idIconTimer; // timer id for animated icons ! 64: HWND hDlgAbout; // handle to the About dialog box ! 65: BOOL fAboutBox; // boolean indicating if the About box is ! 66: // active ! 67: BOOL fHelpUsed; // boolean denoting online help invoked ! 68: } GLOBAL, *PGLOBAL; ! 69: 1.1.1.2 root 70: // *********** 71: // global data 72: // *********** 1.1.1.3 ! root 73: extern GLOBAL Global; // various global data ! 74: extern PROFILE Profile; // various profile data 1.1 root 75: 1.1.1.2 root 76: #endif // DEBMAIN_H
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.