home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / stats.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.9 KB  |  87 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. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  11. #define __stats_h
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif 
  16.  
  17. #include <windows.h>
  18. #include <mapix.h>
  19. #include <stattype.h>
  20.  
  21. typedef HANDLE HFLDMTRC;
  22. typedef HANDLE HJSWINDOW;
  23.  
  24. // Folder Metrics API
  25. // ------------------------
  26. HRESULT HrOpenFolderMetrics(
  27.     IN LPMAPIFOLDER lpFolder,
  28.     OUT HFLDMTRC *phFolderMetric);
  29.  
  30. HRESULT HrGetFolderMetrics(
  31.     IN HFLDMTRC hFolderMetric,
  32.     IN FILETIME *pftNow,
  33.     IN DWORD fMetric,
  34.     OUT DWORD *pcMessages,
  35.     OUT FILETIME *pftLongestWait,
  36.     OUT FILETIME *pftTotalWait);
  37.  
  38. VOID CloseFolderMetrics(
  39.     IN HFLDMTRC hFolderMetric);
  40.  
  41.  
  42. // Jump Slide Window API
  43. // ---------------------
  44.  
  45. HRESULT HrJSOpen(
  46.     IN JSWINDOWTYPE enType,
  47.     IN FILETIME *pftNow,
  48.     IN FILETIME *pftResolution,
  49.     IN DWORD dwWindowDuration,
  50.     OUT HJSWINDOW *phJSWindow);
  51.  
  52. HRESULT HrJSCollectDataPoint(
  53.     IN HJSWINDOW hJSWindow,
  54.     IN FILETIME *pftNow,
  55.     IN DWORD dwValue);
  56.  
  57. HRESULT HrJSGetValue(
  58.     IN HJSWINDOW hJSWindow,
  59.     IN FILETIME *pftNow,
  60.     OUT DWORD *pdwWindowValue,
  61.     OUT DWORD *pdwFractionCompleteNum,
  62.     OUT DWORD *pdwFractionCompleteDen);
  63.  
  64. VOID JSClose(
  65.     IN HJSWINDOW hJSWindow);
  66.  
  67. HRESULT HrFileTimeToSeconds(
  68.     IN FILETIME *pft,
  69.     OUT DWORD *pdwSec);
  70.  
  71.  
  72. // Convert between __int64 and FILETIME
  73. // ------------------------------------
  74.  
  75. #define INT64_FROM_FILETIME(li) (*((__int64 *)&(li)))
  76. #define FILETIME_FROM_INT64(li) (*((FILETIME *)&(li)))
  77.  
  78.  
  79. #ifdef __cplusplus
  80. }
  81. #endif 
  82.  
  83. #pragma option pop /*P_O_Pop*/
  84. #endif
  85.  
  86.  
  87.