try wmi if peb fails for proc_args

This commit is contained in:
Doug MacEachern 2009-08-05 14:30:16 -07:00
parent 7d236ebc39
commit 2550c6373a
1 changed files with 5 additions and 0 deletions

View File

@ -1443,6 +1443,11 @@ static int sigar_remote_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
CloseHandle(proc);
if (status == ERROR_DATATYPE_MISMATCH) {
/* we are 32-bit, pid process is 64-bit */
status = sigar_proc_args_wmi_get(sigar, pid, procargs);
}
return status;
}