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.

129 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: ctestapp.hxx
  7. //
  8. // Contents: CCacheTestApp
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 05-Sep-94 Davepl Created
  15. //
  16. //----------------------------------------------------------------------------
  17. //
  18. // Definitions
  19. //
  20. #define CTESTAPPCLASS ("CacheTestAppWindClass")
  21. #define CTESTAPPTITLE ("OLE Cache Unit Test")
  22. //
  23. // Application window procedure
  24. //
  25. extern "C" {
  26. LRESULT FAR PASCAL
  27. CacheTestAppWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
  28. }
  29. //
  30. // Class definition
  31. //
  32. class CCacheTestApp
  33. {
  34. public:
  35. //
  36. // Constructor and initialization routines
  37. //
  38. CCacheTestApp();
  39. HRESULT Initialize (HINSTANCE hInst,
  40. HINSTANCE hPrevInst,
  41. LPSTR lpszCmdLine);
  42. //
  43. // Destructor
  44. //
  45. ~CCacheTestApp();
  46. //
  47. // Member access
  48. //
  49. inline HWND Window();
  50. inline HANDLE Mutex();
  51. //
  52. // Unit-Test Thread information
  53. //
  54. HANDLE m_hTest;
  55. DWORD m_dwThreadID;
  56. HMETAFILEPICT m_hMFP;
  57. HMETAFILEPICT m_hMFPTILED;
  58. HMETAFILEPICT m_hMFPDIB;
  59. HMETAFILEPICT m_hMFPDIBTILED;
  60. private:
  61. HWND m_hWnd;
  62. HANDLE m_hMutex;
  63. };
  64. //
  65. // Inline functions
  66. //
  67. //+---------------------------------------------------------------------------
  68. //
  69. // Member: CCacheTestApp::Window
  70. //
  71. // Synopsis: returns m_hWnd
  72. //
  73. // Arguments: (none)
  74. //
  75. // Returns: HWND
  76. //
  77. // History: 05-Sep-94 Davepl Created
  78. //
  79. // Notes:
  80. //
  81. //----------------------------------------------------------------------------
  82. inline HWND CCacheTestApp::Window ()
  83. {
  84. return m_hWnd;
  85. }
  86. //+---------------------------------------------------------------------------
  87. //
  88. // Member: CCacheTestApp::Mutex
  89. //
  90. // Synopsis: returns m_hMutex
  91. //
  92. // Arguments: (none)
  93. //
  94. // Returns: HANDLE
  95. //
  96. // History: 05-Sep-94 Davepl Created
  97. //
  98. // Notes:
  99. //
  100. //----------------------------------------------------------------------------
  101. inline HANDLE CCacheTestApp::Mutex()
  102. {
  103. return m_hMutex;
  104. }