home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / loadperf.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  1KB  |  71 lines

  1. /*++
  2.  
  3. Copyright 1995 - 1998 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     loadperf.h
  8.  
  9. Abstract:
  10.  
  11.     Header file for the Performance Monitor counter string installation
  12.     and removal functions.
  13.  
  14. Revision History
  15.  
  16.     16-Nov-95   Created (a-robw)
  17.  
  18. --*/
  19.  
  20. #ifndef _LOADPERF_H_
  21. #define _LOADPERF_H_
  22.  
  23. // function prototypes for perf counter name string load & unload functions
  24. // provided in LOADPERF.DLL
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. #define LOADPERF_FUNCTION   __declspec(dllexport) LONG __stdcall
  31.  
  32. LOADPERF_FUNCTION
  33. LoadPerfCounterTextStringsA (
  34.     IN  LPSTR   lpAnsiCommandLine,
  35.     IN  BOOL    bQuietModeArg
  36. );
  37.  
  38. LOADPERF_FUNCTION
  39. LoadPerfCounterTextStringsW (
  40.     IN  LPWSTR  lpWideCommandLine,
  41.     IN  BOOL    bQuietModeArg
  42. );
  43.  
  44. LOADPERF_FUNCTION
  45. UnloadPerfCounterTextStringsW (
  46.     IN  LPWSTR  lpWideCommandLine,
  47.     IN  BOOL    bQuietModeArg
  48. );
  49.  
  50. LOADPERF_FUNCTION
  51. UnloadPerfCounterTextStringsA (
  52.     IN  LPSTR   lpAnsiCommandLine,
  53.     IN  BOOL    bQuietModeArg
  54. );
  55.  
  56. #ifdef UNICODE
  57. #define LoadPerfCounterTextStrings      LoadPerfCounterTextStringsW
  58. #define UnloadPerfCounterTextStrings    UnloadPerfCounterTextStringsW
  59. #else
  60. #define LoadPerfCounterTextStrings      LoadPerfCounterTextStringsA
  61. #define UnloadPerfCounterTextStrings    UnloadPerfCounterTextStringsA
  62. #endif
  63.  
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69.  
  70. #endif // _LOADPERF_H_
  71.