home *** CD-ROM | disk | FTP | other *** search
/ PC User 1997 April / PCU_APR_97.ISO / utils / cpu / cpuinfo / source / tstdll32 / tstdll32.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-14  |  3.8 KB  |  142 lines

  1. /***************************************************************
  2. * C file:  Tstdll32.h... for Tstdll32.exe
  3. *
  4. *       This program has been developed by Intel Corporation.  
  5. *        You have Intel's permission to incorporate this code 
  6. *       into your product, royalty free.  Intel has various 
  7. *        intellectual property rights which it may assert under
  8. *       certain circumstances, such as if another manufacturer's
  9. *       processor mis-identifies itself as being "GenuineIntel"
  10. *        when the CPUID instruction is executed.
  11. *
  12. *       Intel specifically disclaims all warranties, express or
  13. *       implied, and all liability, including consequential and
  14. *        other indirect damages, for the use of this code, 
  15. *        including liability for infringement of any proprietary
  16. *        rights, and including the warranties of merchantability
  17. *        and fitness for a particular purpose.  Intel does not 
  18. *        assume any responsibility for any errors which may 
  19. *        appear in this code nor any responsibility to update it.
  20. *
  21. *  * Other brands and names are the property of their respective
  22. *    owners.
  23. *
  24. *  Copyright (c) 1995, Intel Corporation.  All rights reserved.
  25. ***************************************************************/
  26.  
  27. #ifndef tstdll32_h
  28. #define tstdll32_h
  29.  
  30.  
  31.  
  32. // Name of dll file with functions under test.
  33.  
  34.  
  35. #define CPUINFODLL "cpuinf32.dll"
  36.  
  37.  
  38. #ifdef __WINDOWS_386__
  39. #define _EXPORT
  40. #else
  41. #define _EXPORT __export
  42. #endif
  43.  
  44.  
  45.  
  46. // VARIABLE STRUCTURE DEFINITIONS //////////////////////////////
  47. struct FREQ_INFO
  48. {
  49.     unsigned long in_cycles;    // Internal clock cycles during
  50.                                 //   test
  51.                                 
  52.     unsigned long ex_ticks;        // Microseconds elapsed during 
  53.                                 //   test
  54.                                 
  55.     unsigned long raw_freq;        // Raw frequency of CPU in MHz
  56.     
  57.     unsigned long norm_freq;    // Normalized frequency of CPU
  58.                                 //   in MHz.
  59. };
  60.  
  61. struct TIME_STAMP
  62. {
  63.     DWORD High;                    // Upper 32-bits of Time Stamp
  64.                                 //   Register value
  65.     
  66.     DWORD Low;                    // Lower 32-bits of Time Stamp
  67. };                                //   Register value
  68.  
  69. typedef unsigned short ushort;
  70. typedef unsigned long  ulong;
  71.  
  72.  
  73.  
  74. // CONSTANT DEFINITIONS ////////////////////////////////////////
  75. #define CLONE_MASK        0x8000    // Mask to be 'OR'ed with proc-
  76.                                 //   essor family type
  77.  
  78.  
  79.  
  80. /***************************************************************
  81. * InitApplication()
  82. *
  83. * Inputs:
  84. *    hInstance    Handle for first instance of app
  85. *
  86. * Returns:
  87. *    atom that uniquely identifies the class being registered.
  88. *    zero if an error occurs.
  89. ***************************************************************/
  90. BOOL InitApplication(HANDLE);
  91.  
  92.  
  93. /***************************************************************
  94. * InitInstance()
  95. * Purpose:
  96. *   Initialization for first instance of app.
  97. *
  98. * Inputs:
  99. *    hInstance    Main window handle instance 
  100. *    nCmdShow    Main window display flag
  101. *
  102. * Returns:
  103. *    Always returns true.
  104. ***************************************************************/
  105. BOOL InitInstance(HANDLE, int);
  106.  
  107.  
  108. /***************************************************************
  109. * EventLoop()
  110. *
  111. * Inputs:
  112. *    hInstance    Window instance handle
  113. *
  114. * Returns: none
  115. ***************************************************************/
  116. void EventLoop();
  117.  
  118.  
  119. /***************************************************************
  120. * WndProc(HWND, UINT, WPARAM, LPARAM)
  121. *
  122. * Purpose:
  123. *   Processes messages
  124. *
  125. * Messages:
  126. *    WM_COMMAND    - application menu (About dialog box)
  127. *    WM_DESTROY    - destroy window
  128. *
  129. * Inputs:
  130. *   hWnd        Window Handle
  131. *   message        Type of Message
  132. *   uParam        Additional Information
  133. *    LParam        Additional Information
  134. *
  135. * Returns:
  136. *   LRESULT returned by DefWindowProc or 0
  137. ***************************************************************/
  138. LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
  139.  
  140. #endif tstdll32_h
  141.