windows-nt/Source/XPSP1/NT/base/screg/winreg/perfdlls/netsvcs/datasrv.h
2020-09-26 16:20:57 +08:00

102 lines
3.3 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
DATASRV.h
Abstract:
Header file for the Windows NT Server Performance counters.
This file contains definitions to construct the dynamic data
which is returned by the Configuration Registry. Data from
various system API calls is placed into the structures shown
here.
Author:
Bob Watson 28-Oct-1996
Revision History:
--*/
#ifndef _DATASRV_H_
#define _DATASRV_H_
//
// logical disk performance definition structure
//
//
// This is the Srv counter structure presently returned by NT.
//
typedef struct _SRV_DATA_DEFINITION {
PERF_OBJECT_TYPE SrvObjectType;
PERF_COUNTER_DEFINITION cdTotalBytes;
PERF_COUNTER_DEFINITION cdTotalBytesReceived;
PERF_COUNTER_DEFINITION cdTotalBytesSent;
PERF_COUNTER_DEFINITION cdSessionsTimedOut;
PERF_COUNTER_DEFINITION cdSessionsErroredOut;
PERF_COUNTER_DEFINITION cdSessionsLoggedOff;
PERF_COUNTER_DEFINITION cdSessionsForcedLogOff;
PERF_COUNTER_DEFINITION cdLogonErrors;
PERF_COUNTER_DEFINITION cdAccessPermissionErrors;
PERF_COUNTER_DEFINITION cdGrantedAccessErrors;
PERF_COUNTER_DEFINITION cdSystemErrors;
PERF_COUNTER_DEFINITION cdBlockingSmbsRejected;
PERF_COUNTER_DEFINITION cdWorkItemShortages;
PERF_COUNTER_DEFINITION cdTotalFilesOpened;
PERF_COUNTER_DEFINITION cdCurrentOpenFiles;
PERF_COUNTER_DEFINITION cdCurrentSessions;
PERF_COUNTER_DEFINITION cdCurrentOpenSearches;
PERF_COUNTER_DEFINITION cdCurrentNonPagedPoolUsage;
PERF_COUNTER_DEFINITION cdNonPagedPoolFailures;
PERF_COUNTER_DEFINITION cdPeakNonPagedPoolUsage;
PERF_COUNTER_DEFINITION cdCurrentPagedPoolUsage;
PERF_COUNTER_DEFINITION cdPagedPoolFailures;
PERF_COUNTER_DEFINITION cdPeakPagedPoolUsage;
PERF_COUNTER_DEFINITION cdContextBlockQueueRate;
PERF_COUNTER_DEFINITION cdNetLogon;
PERF_COUNTER_DEFINITION cdNetLogonTotal;
} SRV_DATA_DEFINITION, *PSRV_DATA_DEFINITION;
typedef struct _SRV_COUNTER_DATA{
PERF_COUNTER_BLOCK CounterBlock;
LONGLONG TotalBytes;
LONGLONG TotalBytesReceived;
LONGLONG TotalBytesSent;
DWORD SessionsTimedOut;
DWORD SessionsErroredOut;
DWORD SessionsLoggedOff;
DWORD SessionsForcedLogOff;
DWORD LogonErrors;
DWORD AccessPermissionErrors;
DWORD GrantedAccessErrors;
DWORD SystemErrors;
DWORD BlockingSmbsRejected;
DWORD WorkItemShortages;
DWORD TotalFilesOpened;
DWORD CurrentOpenFiles;
DWORD CurrentSessions;
DWORD CurrentOpenSearches;
DWORD CurrentNonPagedPoolUsage;
DWORD NonPagedPoolFailures;
DWORD PeakNonPagedPoolUsage;
DWORD CurrentPagedPoolUsage;
DWORD PagedPoolFailures;
DWORD PeakPagedPoolUsage;
DWORD ContextBlockQueueRate;
DWORD NetLogon;
DWORD NetLogonTotal;
} SRV_COUNTER_DATA, * PSRV_COUNTER_DATA;
extern SRV_DATA_DEFINITION SrvDataDefinition;
#endif // _DATASRV_H_