| Index: third_party/psutil/psutil/_psutil_mswindows.h
|
| diff --git a/third_party/psutil/psutil/_psutil_mswindows.h b/third_party/psutil/psutil/_psutil_mswindows.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f844a14b021a6eea70a8f859e1ab5c07b54833b5
|
| --- /dev/null
|
| +++ b/third_party/psutil/psutil/_psutil_mswindows.h
|
| @@ -0,0 +1,43 @@
|
| +/*
|
| + * $Id: _psutil_mswindows.h 778 2010-11-08 19:59:08Z g.rodola $
|
| + *
|
| + * Windows platform-specific module methods for _psutil_mswindows
|
| + *
|
| + */
|
| +
|
| +#include <Python.h>
|
| +#include <windows.h>
|
| +
|
| +// --- per-process functions
|
| +
|
| +static PyObject* kill_process(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_name(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_cmdline(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_ppid(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_cpu_times(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_create_time(PyObject* self, PyObject* args);
|
| +static PyObject* get_memory_info(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_cwd(PyObject* self, PyObject* args);
|
| +static PyObject* suspend_process(PyObject* self, PyObject* args);
|
| +static PyObject* resume_process(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_open_files(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_username(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_connections(PyObject* self, PyObject* args);
|
| +static PyObject* get_process_num_threads(PyObject* self, PyObject* args);
|
| +
|
| +// --- system-related functions
|
| +
|
| +static PyObject* get_pid_list(PyObject* self, PyObject* args);
|
| +static PyObject* get_num_cpus(PyObject* self, PyObject* args);
|
| +static PyObject* get_system_uptime(PyObject* self, PyObject* args);
|
| +static PyObject* get_total_phymem(PyObject* self, PyObject* args);
|
| +static PyObject* get_total_virtmem(PyObject* self, PyObject* args);
|
| +static PyObject* get_avail_phymem(PyObject* self, PyObject* args);
|
| +static PyObject* get_avail_virtmem(PyObject* self, PyObject* args);
|
| +static PyObject* get_system_cpu_times(PyObject* self, PyObject* args);
|
| +static PyObject* _QueryDosDevice(PyObject* self, PyObject* args);
|
| +static PyObject* pid_exists(PyObject* self, PyObject* args);
|
| +
|
| +// --- others
|
| +
|
| +int suspend_resume_process(DWORD pid, int suspend);
|
|
|