turns on we need PERF_DETAIL_WIZARD for pdhGetInstances

This commit is contained in:
Doug MacEachern 2005-04-20 01:31:52 +00:00
parent dbfda75b1b
commit 4beb4e6fc4
1 changed files with 2 additions and 2 deletions

View File

@ -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);