Snapmon.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

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