home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / edktrack.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  3.7 KB  |  80 lines

  1. // --edktrack.h-----------------------------------------------------------------
  2. //
  3. //  Header file for module containing gateway tracking functions and structures.
  4. // 
  5. // Copyright 1986 - 1998 Microsoft Corporation.  All Rights Reserved.
  6. // -----------------------------------------------------------------------------
  7.  
  8. #ifndef _EDKTRACK_H
  9. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  10. #define _EDKTRACK_H
  11.  
  12. #include "rpcpub.h"
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif // __cplusplus
  17.  
  18. //$--HrTrackInitLog-------------------------------------------------------------
  19. //  This function initializes the gateway event tracking module.
  20. // -----------------------------------------------------------------------------
  21. HRESULT HrTrackInitLog(
  22.     IN LPSTR lpszComputer,          // name of the remote computer
  23.     OUT PVOID *ppvSession);         // pointer to gateway tracking session
  24.  
  25. //$--HrTrackWriteLog@-------------------------------------------------------
  26. //  This function logs a gateway tracking event.
  27. // ----------------------------------------------------------------------------
  28. HRESULT HrTrackWriteLogW(
  29.     IN PVOID           pvSession,       // gateway tracking session
  30.     IN UINT            nEventType,      // gateway tracking event type
  31.     IN SYSTEMTIME      stEvent,         // time event took place
  32.     IN LPCWSTR         lpszGatewayName, // gateway name
  33.     IN LPCWSTR         lpszPartner,     // pointer to entity name string
  34.     IN LPCWSTR         lpszMTSID,       // pointer to MTS-ID string
  35.     IN LPCWSTR         lpszSubjectMTSID,// pointer to subject MTS-ID string
  36.     IN LPCWSTR         lpszRemoteID,    // pointer to foreign ID string
  37.     IN LPCWSTR         lpszOriginator,  // pointer to originator string
  38.     IN INT             nPriority,       // message priority
  39.     IN INT             nLength,         // message length
  40.     IN INT             nSeconds,        // seconds to process this message
  41.     IN INT             nCost,           // cost of processing this message
  42.     IN INT             cRecipients,     // count of recipients
  43.     IN LPCWSTR        *lppszRecipients);// pointer to recipient pointers
  44.  
  45. HRESULT HrTrackWriteLogA(
  46.     IN PVOID           pvSession,       // gateway tracking session
  47.     IN UINT            nEventType,      // gateway tracking event type
  48.     IN SYSTEMTIME      stEvent,         // time event took place
  49.     IN LPCSTR          lpszGatewayName, // gateway name
  50.     IN LPCSTR          lpszPartner,     // pointer to entity name string
  51.     IN LPCSTR          lpszMTSID,       // pointer to MTS-ID string
  52.     IN LPCSTR          lpszSubjectMTSID,// pointer to subject MTS-ID string
  53.     IN LPCSTR          lpszRemoteID,    // pointer to foreign ID string
  54.     IN LPCSTR          lpszOriginator,  // pointer to originator string
  55.     IN INT             nPriority,       // message priority
  56.     IN INT             nLength,         // message length
  57.     IN INT             nSeconds,        // seconds to process this message
  58.     IN INT             nCost,           // cost of processing this message
  59.     IN INT             cRecipients,     // count of recipients
  60.     IN LPCSTR         *lppszRecipients);// pointer to recipient pointers
  61.  
  62. #ifdef UNICODE
  63. #define HrTrackWriteLog  HrTrackWriteLogW
  64. #else
  65. #define HrTrackWriteLog  HrTrackWriteLogA
  66. #endif
  67.  
  68. //$--HrTrackUninitLog----------------------------------------------------------
  69. //  This function uninitializes the gateway event tracking module.
  70. // ----------------------------------------------------------------------------
  71. HRESULT HrTrackUninitLog(
  72.     IN OUT PVOID *ppvSession);          // pointer to gateway tracking session
  73.  
  74. #ifdef __cplusplus
  75. }
  76. #endif  // __cplusplus
  77.  
  78. #pragma option pop /*P_O_Pop*/
  79. #endif
  80.