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

  1. // --stats.h--------------------------------------------------------------------
  2. //
  3. //  This header file defines the C version of the stats
  4. //  library.
  5. // 
  6. // Copyright 1986 - 1998 Microsoft Corporation.  All Rights Reserved.
  7. // -----------------------------------------------------------------------------
  8.  
  9. #ifndef __stats_h
  10. #define __stats_h
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif 
  15.  
  16. #include <windows.h>
  17. #include <mapix.h>
  18. #include <stattype.h>
  19.  
  20. typedef HANDLE HFLDMTRC;
  21. typedef HANDLE HJSWINDOW;
  22.  
  23. // Folder Metrics API
  24. // ------------------------
  25. HRESULT HrOpenFolderMetrics(
  26.     IN LPMAPIFOLDER lpFolder,
  27.     OUT HFLDMTRC *phFolderMetric);
  28.  
  29. HRESULT HrGetFolderMetrics(
  30.     IN HFLDMTRC hFolderMetric,
  31.     IN FILETIME *pftNow,
  32.     IN DWORD fMetric,
  33.     OUT DWORD *pcMessages,
  34.     OUT FILETIME *pftLongestWait,
  35.     OUT FILETIME *pftTotalWait);
  36.  
  37. VOID CloseFolderMetrics(
  38.     IN HFLDMTRC hFolderMetric);
  39.  
  40.  
  41. // Jump Slide Window API
  42. // ---------------------
  43.  
  44. HRESULT HrJSOpen(
  45.     IN JSWINDOWTYPE enType,
  46.     IN FILETIME *pftNow,
  47.     IN FILETIME *pftResolution,
  48.     IN DWORD dwWindowDuration,
  49.     OUT HJSWINDOW *phJSWindow);
  50.  
  51. HRESULT HrJSCollectDataPoint(
  52.     IN HJSWINDOW hJSWindow,
  53.     IN FILETIME *pftNow,
  54.     IN DWORD dwValue);
  55.  
  56. HRESULT HrJSGetValue(
  57.     IN HJSWINDOW hJSWindow,
  58.     IN FILETIME *pftNow,
  59.     OUT DWORD *pdwWindowValue,
  60.     OUT DWORD *pdwFractionCompleteNum,
  61.     OUT DWORD *pdwFractionCompleteDen);
  62.  
  63. VOID JSClose(
  64.     IN HJSWINDOW hJSWindow);
  65.  
  66. HRESULT HrFileTimeToSeconds(
  67.     IN FILETIME *pft,
  68.     OUT DWORD *pdwSec);
  69.  
  70.  
  71. // Convert between __int64 and FILETIME
  72. // ------------------------------------
  73.  
  74. #define INT64_FROM_FILETIME(li) (*((__int64 *)&(li)))
  75. #define FILETIME_FROM_INT64(li) (*((FILETIME *)&(li)))
  76.  
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif 
  81.  
  82. #endif
  83.  
  84.  
  85.