c++ - performance counter -


here code, bandwidth of system system, using counter . i'm getting "pdhcollectquerydata failed"

ie.error code = "pdh_no_data" plz tell me i'm going wrong.?????

#include <windows.h> #include <conio.h> #include <stdio.h> #include <pdh.h>  #pragma comment(lib,"pdh.lib") 

why didn't include output enum calls, presumably worked since not commented out?

i'd surprised if there space in counter_path after second opening parenthesis, have here. i'd expect name not have leading space.

const lpcstr counter_path = text("\\network interface( nvidia nforce networking controller - packetscheduler miniport)\\current bandwidth"); 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -