Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: app.h
  7. //
  8. // Contents: The class declaration of OleTestApp class..
  9. //
  10. // Classes: OleTestApp
  11. //
  12. // History: dd-mmm-yy Author Comment
  13. // 06-Feb-93 alexgo author
  14. //
  15. //--------------------------------------------------------------------------
  16. #ifndef _APP_H
  17. #define _APP_H
  18. //+-------------------------------------------------------------------------
  19. //
  20. // Class: OleTestApp
  21. //
  22. // Purpose: Stores all global app data for the oletest driver app
  23. // (such as the to-do stack).
  24. //
  25. // History: dd-mmm-yy Author Comment
  26. // 06-Feb-93 alexgo author
  27. //
  28. // Notes:
  29. //
  30. //--------------------------------------------------------------------------
  31. class OleTestApp
  32. {
  33. public:
  34. // driver information
  35. HINSTANCE m_hinst;
  36. HWND m_hwndMain;
  37. HWND m_hwndEdit;
  38. TaskStack m_TaskStack;
  39. BOOL m_fInteractive; //if TRUE, then we should not
  40. //shut down when tests are
  41. //completed.
  42. LPSTR m_pszDebuggerOption;
  43. FILE * m_fpLog;
  44. // set to TRUE when a test fails, reset after WM_TESTSCOMPLETED
  45. BOOL m_fGotErrors;
  46. // information on running test apps
  47. void Reset(void); //zeros all the data below.
  48. UINT m_message;
  49. WPARAM m_wparam;
  50. LPARAM m_lparam;
  51. // variables that test routines may modify.
  52. HWND m_rgTesthwnd[10];
  53. void * m_Temp; //temporary dumping ground for
  54. //data that spans callback functions.
  55. };
  56. // declaration for the global instance of OleTestApp
  57. extern OleTestApp vApp;
  58. #endif