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

  1.  
  2. /*****************************************************************************/
  3. /* snapmon.h - include for the SNA Perfmon Interface                         */
  4. /* Copyright (c) Microsoft Corporation 1995 - 1996                           */
  5. /*****************************************************************************/
  6.  
  7.  
  8. #ifdef __cplusplus
  9. extern "C"
  10. {
  11. #endif
  12.  
  13.  
  14. typedef struct adaptercounter {
  15.     ULONG          count;
  16.     ULONG          type;
  17.     LONG           scale;
  18. } ADAPTERCOUNTER;
  19.  
  20. typedef struct adapterperfdata {
  21.     ULONG          inuse;
  22.     ULONG          ServiceNameIndex;
  23.     ULONG          FirstCounterIndex;
  24.  
  25.     ADAPTERCOUNTER TotalBytesReceived;
  26.     ADAPTERCOUNTER TotalBytesTransmitted;
  27.     ADAPTERCOUNTER TotalFramesReceived;
  28.     ADAPTERCOUNTER TotalFramesTransmitted;
  29.     ADAPTERCOUNTER SuccessfulConnects;
  30.     ADAPTERCOUNTER ConnectionFailures;
  31.     ADAPTERCOUNTER TotalBytesThroughput;
  32.     ADAPTERCOUNTER TotalFramesThroughput;
  33.     ADAPTERCOUNTER AdapterFailures;
  34.     ADAPTERCOUNTER reserved[11];
  35.  
  36.     ULONG          pad;
  37. } ADAPTERPERFDATA;
  38.  
  39. extern void              WINAPI SNAInitLinkPerfmon(HANDLE *, void **);
  40. extern ADAPTERPERFDATA * WINAPI SNAGetLinkPerfArea(HANDLE, ADAPTERPERFDATA *);
  41. extern USHORT            WINAPI SNAGetPerfValues(int *, int *);
  42. extern USHORT            WINAPI SNAGetPNodePerfVals(int *, int *);
  43.  
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.