草庐IT

关于 c:Vista 上的性能计数器问题

ProblemwithperformancecountersonVista我在使用性能监控API的Vista上遇到了一个奇怪的问题。我目前正在使用基于PdhGetFormattedCounterValue()在XP/2k上运行良好的代码。我开始使用PdhExpandWildCardPath来扩展计数器(我对整体网络统计感兴趣),我正在查看的计数器是:12345\\\etworkInterface(*)\\\\BytesReceived/sec\\\etworkInterface(*)\\\\BytesSent/sec\\\\Processor(_Total)\\\\%ProcessorTime