home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / snapmon.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  2KB  |  50 lines

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