home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / edktrack.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  4KB  |  78 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. #define _EDKTRACK_H
  10.  
  11. #include "rpcpub.h"
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif // __cplusplus
  16.  
  17. //$--HrTrackInitLog-------------------------------------------------------------
  18. //  This function initializes the gateway event tracking module.
  19. // -----------------------------------------------------------------------------
  20. HRESULT HrTrackInitLog(
  21.     IN LPSTR lpszComputer,          // name of the remote computer
  22.     OUT PVOID *ppvSession);         // pointer to gateway tracking session
  23.  
  24. //$--HrTrackWriteLog@-------------------------------------------------------
  25. //  This function logs a gateway tracking event.
  26. // ----------------------------------------------------------------------------
  27. HRESULT HrTrackWriteLogW(
  28.     IN PVOID           pvSession,       // gateway tracking session
  29.     IN UINT            nEventType,      // gateway tracking event type
  30.     IN SYSTEMTIME      stEvent,         // time event took place
  31.     IN LPCWSTR         lpszGatewayName, // gateway name
  32.     IN LPCWSTR         lpszPartner,     // pointer to entity name string
  33.     IN LPCWSTR         lpszMTSID,       // pointer to MTS-ID string
  34.     IN LPCWSTR         lpszSubjectMTSID,// pointer to subject MTS-ID string
  35.     IN LPCWSTR         lpszRemoteID,    // pointer to foreign ID string
  36.     IN LPCWSTR         lpszOriginator,  // pointer to originator string
  37.     IN INT             nPriority,       // message priority
  38.     IN INT             nLength,         // message length
  39.     IN INT             nSeconds,        // seconds to process this message
  40.     IN INT             nCost,           // cost of processing this message
  41.     IN INT             cRecipients,     // count of recipients
  42.     IN LPCWSTR        *lppszRecipients);// pointer to recipient pointers
  43.  
  44. HRESULT HrTrackWriteLogA(
  45.     IN PVOID           pvSession,       // gateway tracking session
  46.     IN UINT            nEventType,      // gateway tracking event type
  47.     IN SYSTEMTIME      stEvent,         // time event took place
  48.     IN LPCSTR          lpszGatewayName, // gateway name
  49.     IN LPCSTR          lpszPartner,     // pointer to entity name string
  50.     IN LPCSTR          lpszMTSID,       // pointer to MTS-ID string
  51.     IN LPCSTR          lpszSubjectMTSID,// pointer to subject MTS-ID string
  52.     IN LPCSTR          lpszRemoteID,    // pointer to foreign ID string
  53.     IN LPCSTR          lpszOriginator,  // pointer to originator string
  54.     IN INT             nPriority,       // message priority
  55.     IN INT             nLength,         // message length
  56.     IN INT             nSeconds,        // seconds to process this message
  57.     IN INT             nCost,           // cost of processing this message
  58.     IN INT             cRecipients,     // count of recipients
  59.     IN LPCSTR         *lppszRecipients);// pointer to recipient pointers
  60.  
  61. #ifdef UNICODE
  62. #define HrTrackWriteLog  HrTrackWriteLogW
  63. #else
  64. #define HrTrackWriteLog  HrTrackWriteLogA
  65. #endif
  66.  
  67. //$--HrTrackUninitLog----------------------------------------------------------
  68. //  This function uninitializes the gateway event tracking module.
  69. // ----------------------------------------------------------------------------
  70. HRESULT HrTrackUninitLog(
  71.     IN OUT PVOID *ppvSession);          // pointer to gateway tracking session
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif  // __cplusplus
  76.  
  77. #endif
  78.