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
Post a Comment