diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-08 14:03:15 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-08 14:03:15 -0800 |
commit | c2f758d4bb972259fcb831d737562d880176793c (patch) | |
tree | 94fa316e517c17a5aad9a16b0185b2571095ad50 | |
parent | 0097583722836c8f6f0173018d206b81e8ec7ea1 (diff) | |
download | psutil-c2f758d4bb972259fcb831d737562d880176793c.tar.gz |
call enum handles
-rw-r--r-- | psutil/arch/windows/process_handles.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/psutil/arch/windows/process_handles.c b/psutil/arch/windows/process_handles.c index 7b98c3f1..938b908f 100644 --- a/psutil/arch/windows/process_handles.c +++ b/psutil/arch/windows/process_handles.c @@ -142,10 +142,15 @@ psutil_get_open_files(DWORD dwPid, HANDLE hProcess) { if (psutil_enum_handles(&handlesList) != 0) goto error; + for (i = 0; i < handlesList->NumberOfHandles; i++) { + printf("%i\n", i); + hHandle = &pHandleInfo->Handles[i]; + } +/* ret = psutil_create_thread(); if (ret != 0) goto error; - +*/ goto exit; error: |