From 4beb4e6fc468e8ef440442444eda4741ad757acc Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 20 Apr 2005 01:31:52 +0000 Subject: [PATCH] turns on we need PERF_DETAIL_WIZARD for pdhGetInstances --- bindings/java/src/jni/win32/pdh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/java/src/jni/win32/pdh.c b/bindings/java/src/jni/win32/pdh.c index 2bceeef5..36daf05c 100644 --- a/bindings/java/src/jni/win32/pdh.c +++ b/bindings/java/src/jni/win32/pdh.c @@ -167,7 +167,7 @@ JNIEXPORT jobjectArray SIGAR_JNI(win32_Pdh_pdhGetInstances) status = PdhEnumObjectItems(NULL, NULL, counter_path, NULL, &counter_list_size, instance_list_buf, - &instance_list_size, PERF_DETAIL_NOVICE, + &instance_list_size, PERF_DETAIL_WIZARD, FALSE); if (status == PDH_MORE_DATA && instance_list_size > 0) { @@ -182,7 +182,7 @@ JNIEXPORT jobjectArray SIGAR_JNI(win32_Pdh_pdhGetInstances) NULL, &counter_list_size, instance_list_buf, &instance_list_size, - PERF_DETAIL_NOVICE, FALSE); + PERF_DETAIL_WIZARD, FALSE); } JENV->ReleaseStringUTFChars(env, cp, counter_path);