📄 passthru.mof
字号:
//
// Copyright 2003, James Antognini, antognini@mindspring.com.
//
[WMI,
Dynamic,
Provider("WMIProv"),
guid("{5635DE7F-44E4-4dd6-B2A8-2A2A888A49B3}"),
locale("MS\\0x409"),
WmiExpense(1),
Description("PassThru statistics of packets seen or dropped in callbacks") : amended,
PerfDetail(100),
HiPerf,
DisplayName("PassThru Statistics") : amended
]
class PassthruStatistics : Win32_PerfRawData
{
[key, read]
string InstanceName; // Instance name returned from WMI
[read]
boolean Active;
// In the author's experience, NDIS reports WMI data to user-space routines preceded by a 4-byte count of the number of actual data fields.
// This is true whether a particular MOF class begins with a "count" property (as below, with Count in PassthruStatistics) or not. Since
// NDIS so behaves, this MOF file does in fact have each class begin with a count property so that user-space programs "know" to expect the
// count field at the beginning of WMI data.
// Omitting CounterType, DefaultScale and PerfDetail prevents the Count property from appearing in PerfMon (see
// ms-help://MS.MSDNQTR.2003JUL.1033/wmisdk/wmi/making_classes_appear_as_counters_in_system_monitor.htm).
[WmiDataId(1),
read
]
uint32 Count;
[WmiDataId(2),
DisplayName("MPSendPackets packets seen") : amended,
Description("Packets seen in MPSendPackets") : amended,
CounterType(0x00000000),
DefaultScale(-2),
PerfDetail(100), // PERF_DETAIL_NOVICE.
read
]
uint32 MPSendPktsSeen;
[WmiDataId(3),
DisplayName("MPSendPackets packets dropped") : amended,
Description("Packets dropped in MPSendPackets") : amended,
CounterType(0x00000000),
DefaultScale(-2),
PerfDetail(100),
read
]
uint32 MPSendPktsDropped;
[WmiDataId(4),
DisplayName("PTReceive packets seen") : amended,
Description("Packets seen in PTReceive") : amended,
CounterType(0x00000000),
DefaultScale(-2),
PerfDetail(100),
read
]
uint32 PTRcvSeen;
[WmiDataId(5),
DisplayName("PTReceive packets dropped") : amended,
Description("Packets dropped in PTReceive") : amended,
CounterType(0x00000000),
DefaultScale(-2),
PerfDetail(100),
read
]
uint32 PTRcvDropped;
[WmiDataId(6),
DisplayName("PTReceivePacket packets seen") : amended,
Description("Packets seen in PTReceivePacket") : amended,
CounterType(0x00000000),
DefaultScale(-2),
PerfDetail(100),
read
]
uint32 PTRcvPktsSeen;
[WmiDataId(7),
DisplayName("PTReceivePacket packets dropped") : amended,
Description("Packets dropped in PTReceivePacket") : amended,
CounterType(0x00000000),
DefaultScale(-2),
PerfDetail(100),
read
]
uint32 PTRcvPktsDropped;
};
[WMI,
Dynamic,
Provider("WMIProv"),
guid("{5635DE81-44E4-4dd6-B2A8-2A2A888A49B3}"),
localeid(0x409),
WmiExpense(1),
Description("An Array to query/set") : amended
]
class PassthruIPAddrArray
{
[key, read]
string InstanceName; // Instance name returned from WMI
[read]
boolean Active;
[read, write,
Description("Number of array elements.") : amended,
WmiDataId(1)
] uint32 NumberElements;
[read, write,
Description("The array.") : amended,
WmiDataId(2),
WmiSizeIs("NumberElements")
] uint32 IPAddrArray[];
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -