turns on we need PERF_DETAIL_WIZARD for pdhGetInstances
This commit is contained in:
parent
dbfda75b1b
commit
4beb4e6fc4
|
@ -167,7 +167,7 @@ JNIEXPORT jobjectArray SIGAR_JNI(win32_Pdh_pdhGetInstances)
|
||||||
|
|
||||||
status = PdhEnumObjectItems(NULL, NULL, counter_path, NULL,
|
status = PdhEnumObjectItems(NULL, NULL, counter_path, NULL,
|
||||||
&counter_list_size, instance_list_buf,
|
&counter_list_size, instance_list_buf,
|
||||||
&instance_list_size, PERF_DETAIL_NOVICE,
|
&instance_list_size, PERF_DETAIL_WIZARD,
|
||||||
FALSE);
|
FALSE);
|
||||||
|
|
||||||
if (status == PDH_MORE_DATA && instance_list_size > 0) {
|
if (status == PDH_MORE_DATA && instance_list_size > 0) {
|
||||||
|
@ -182,7 +182,7 @@ JNIEXPORT jobjectArray SIGAR_JNI(win32_Pdh_pdhGetInstances)
|
||||||
NULL, &counter_list_size,
|
NULL, &counter_list_size,
|
||||||
instance_list_buf,
|
instance_list_buf,
|
||||||
&instance_list_size,
|
&instance_list_size,
|
||||||
PERF_DETAIL_NOVICE, FALSE);
|
PERF_DETAIL_WIZARD, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
JENV->ReleaseStringUTFChars(env, cp, counter_path);
|
JENV->ReleaseStringUTFChars(env, cp, counter_path);
|
||||||
|
|
Loading…
Reference in New Issue