Snapmon.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- /*****************************************************************************/
- /* snapmon.h - include for the SNA Perfmon Interface */
- /* Copyright (c) Microsoft Corporation. All rights reserved. */
- /*****************************************************************************/
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- typedef struct adaptercounter {
- ULONG count;
- ULONG type;
- LONG scale;
- } ADAPTERCOUNTER;
- typedef struct adapterperfdata {
- ULONG inuse;
- ULONG ServiceNameIndex;
- ULONG FirstCounterIndex;
- ADAPTERCOUNTER TotalBytesReceived;
- ADAPTERCOUNTER TotalBytesTransmitted;
- ADAPTERCOUNTER TotalFramesReceived;
- ADAPTERCOUNTER TotalFramesTransmitted;
- ADAPTERCOUNTER SuccessfulConnects;
- ADAPTERCOUNTER ConnectionFailures;
- ADAPTERCOUNTER TotalBytesThroughput;
- ADAPTERCOUNTER TotalFramesThroughput;
- ADAPTERCOUNTER AdapterFailures;
- ADAPTERCOUNTER reserved[11];
- ULONG pad;
- } ADAPTERPERFDATA;
- extern void WINAPI SNAInitLinkPerfmon(HANDLE *, void **);
- extern ADAPTERPERFDATA * WINAPI SNAGetLinkPerfArea(HANDLE, ADAPTERPERFDATA *);
- extern USHORT WINAPI SNAGetPerfValues(int *, int *);
- extern USHORT WINAPI SNAGetPNodePerfVals(int *, int *);
- #ifdef __cplusplus
- }
- #endif