home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / debug / deb / debmain.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  3KB  |  72 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993-1997 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.  
  12. #ifndef DEBMAIN_H
  13.  
  14.  #define DEBMAIN_H
  15.  
  16.  #ifndef DEB_H
  17.   #include "DEB.H"    // resource and message ids
  18.  #endif
  19.  
  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     szApiFailed[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.    BOOL      fHelpUsed;          // boolean denoting online help invoked
  63.  } GLOBAL, *PGLOBAL;
  64.  
  65.  // ***********
  66.  // global data
  67.  // ***********
  68.  extern GLOBAL  Global;          // various global data
  69.  extern PROFILE Profile;         // various profile data
  70.  
  71. #endif // DEBMAIN_H
  72.