diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-06 11:15:47 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-06 11:15:47 -0800 |
commit | 9d029a0a19a8dbcfb8fd5913a02eb7755836523e (patch) | |
tree | 248c7d9b56eee3a278e73655930875bc3d467876 | |
parent | 2a297b455e09cd9724274164b74d8cef54617fc2 (diff) | |
download | psutil-9d029a0a19a8dbcfb8fd5913a02eb7755836523e.tar.gz |
Win: fix compilation err on python 32 bit
-rw-r--r-- | psutil/arch/windows/process_info.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/psutil/arch/windows/process_info.c b/psutil/arch/windows/process_info.c index 5daf0b69..14e8cecf 100644 --- a/psutil/arch/windows/process_info.c +++ b/psutil/arch/windows/process_info.c @@ -16,6 +16,16 @@ #include "../../_psutil_common.h" +#ifndef _WIN64 +typedef NTSTATUS (NTAPI *__NtQueryInformationProcess)( + HANDLE ProcessHandle, + DWORD ProcessInformationClass, + PVOID ProcessInformation, + DWORD ProcessInformationLength, + PDWORD ReturnLength); +#endif + + /* * Given a pointer into a process's memory, figure out how much * data can be read from it. @@ -79,7 +89,7 @@ psutil_get_process_data(long pid, */ SIZE_T size = 0; #ifndef _WIN64 - static _NtQueryInformationProcess NtWow64QueryInformationProcess64 = NULL; + static __NtQueryInformationProcess NtWow64QueryInformationProcess64 = NULL; static _NtWow64ReadVirtualMemory64 NtWow64ReadVirtualMemory64 = NULL; #endif HANDLE hProcess = NULL; |