diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-20 06:46:58 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-20 06:46:58 -0800 |
commit | 071786df740d693602106bd39fb9680a78fd2a23 (patch) | |
tree | a7295c4a64a0870127e3890b8e0516cb0d811347 | |
parent | d2cdf617ae4248a431c1dbbcbea9354b2b4c5536 (diff) | |
download | psutil-071786df740d693602106bd39fb9680a78fd2a23.tar.gz |
move definitions
-rw-r--r-- | psutil/arch/windows/ntextapi.h | 1 | ||||
-rw-r--r-- | psutil/arch/windows/process_handles.c | 3 | ||||
-rw-r--r-- | psutil/arch/windows/process_handles.h | 17 |
3 files changed, 4 insertions, 17 deletions
diff --git a/psutil/arch/windows/ntextapi.h b/psutil/arch/windows/ntextapi.h index f6bca591..6f364b76 100644 --- a/psutil/arch/windows/ntextapi.h +++ b/psutil/arch/windows/ntextapi.h @@ -12,6 +12,7 @@ typedef LONG NTSTATUS; #define STATUS_INFO_LENGTH_MISMATCH 0xc0000004 #define STATUS_BUFFER_TOO_SMALL 0xC0000023L +#define SystemExtendedHandleInformation 64 typedef struct { LARGE_INTEGER IdleTime; diff --git a/psutil/arch/windows/process_handles.c b/psutil/arch/windows/process_handles.c index 8242b99c..b193feee 100644 --- a/psutil/arch/windows/process_handles.c +++ b/psutil/arch/windows/process_handles.c @@ -5,6 +5,9 @@ * */ +#include <windows.h> +#include <Psapi.h> +#include <Python.h> #include "process_handles.h" #include "process_info.h" #include "global.h" diff --git a/psutil/arch/windows/process_handles.h b/psutil/arch/windows/process_handles.h index d187def5..342ce8fd 100644 --- a/psutil/arch/windows/process_handles.h +++ b/psutil/arch/windows/process_handles.h @@ -4,24 +4,7 @@ * found in the LICENSE file. */ -#ifndef __PROCESS_HANDLES_H__ -#define __PROCESS_HANDLES_H__ - -#ifndef UNICODE -#define UNICODE -#endif - #include <Python.h> -#include <stdio.h> #include <windows.h> -#include <strsafe.h> -#include <winternl.h> -#include <psapi.h> -#include "ntextapi.h" - -// Undocumented FILE_INFORMATION_CLASS: FileNameInformation -static const SYSTEM_INFORMATION_CLASS SystemExtendedHandleInformation = (SYSTEM_INFORMATION_CLASS)64; PyObject* psutil_get_open_files(long pid, HANDLE processHandle); - -#endif // __PROCESS_HANDLES_H__ |