summaryrefslogtreecommitdiff
path: root/psutil/_psutil_windows.c
Commit message (Collapse)AuthorAgeFilesLines
* win C refact: reconstruct _psutil_windows.c trying to preserve historyGiampaolo Rodola2023-04-191-0/+284
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* rename _psutil_windows.c -> proc.cGiampaolo Rodola2023-04-191-1507/+0
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* Win, C, refact: move boot_time() and users() in new sys.cGiampaolo Rodola2023-04-181-167/+6
|
* Windows / refact: new sensors.c fileGiampaolo Rodola2023-04-181-25/+1
|
* C refact: remove useless cmdline / cwd / environ layers. Call direct functionsGiampaolo Rodola2023-04-181-73/+0
|
* Get Windows percent swap usage from performance counters (#2160)Daniel Widdis2023-04-131-0/+1
| | | Signed-off-by: Daniel Widdis <widdis@gmail.com>
* move psutil_getpagesize() in a new mem.c fileGiampaolo Rodola2023-04-101-11/+0
|
* move psutil_virtual_mem() in a new mem.c fileGiampaolo Rodola2023-04-101-29/+1
|
* Use system-level values for Windows virtual memory (#2077)Daniel Widdis2022-10-211-10/+15
| | | | | | | | | | | | | | | | | * Use system-level values for Windows virtual memory Submitting this as a draft PR as I believe it will address #2074. I do not have either a C or Python development environment to test these changes, so they are provided in the hopes someone else can test and confirm they fix the issue. There's probably some room to simplify the code with temporary variables to reduce redundancy. For background, I have implemented precisely this logic in my own (Java-based) project [here](https://github.com/oshi/oshi/blob/3bb9eafbe2062edad4108b7b12501b1f9be27361/oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsVirtualMemory.java#L110-L118) and [here](https://github.com/oshi/oshi/blob/3bb9eafbe2062edad4108b7b12501b1f9be27361/oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsGlobalMemory.java#L253-L263) following a detailed investigation in https://github.com/oshi/oshi/issues/1182 Signed-off-by: Daniel Widdis <widdis@gmail.com> * Formatting, credits, change log Signed-off-by: Daniel Widdis <widdis@gmail.com> Signed-off-by: Daniel Widdis <widdis@gmail.com>
* Remove docstrings from C function definitions (#2058)Giampaolo Rodola2022-01-161-111/+55
|
* c / win: get rid of psutil_load_globals() and move it into psutil_setup() funGiampaolo Rodola2021-11-041-2/+0
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* PSUTIL_DEBUG: print file + line number for C ext modules (#2005)Giampaolo Rodola2021-10-261-2/+2
|
* update HISTORY to include #1981, CREDIT @PetrPospisil, fix C linter warningsGiampaolo Rodola2021-10-181-6/+6
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* Fix WOW64 issue: NtQuerySystemInformation does not set ↵PetrPospisil2021-10-181-7/+39
| | | | | | | ImageName.MaximumLength (#1981) * fix WOW64 issue when the NtQuerySystemInformation does not set ImageName.MaximumLength when STATUS_INFO_LENGTH_MISMATCH is returned Signed-off-by: Petr Pospíšil <petr.pospisil@safetica.com>
* fix #1965 / win / users() / critical: Py_INCREF(Py_None) before setting None ↵Giampaolo Rodola2021-10-051-0/+1
| | | | | | object in C Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* remove win dead codeGiampaolo Rodola2020-12-271-29/+0
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* rename C funGiampaolo Rodola2020-12-211-1/+1
|
* Rename cpu_count_physical() to cpu_count_cores()Giampaolo Rodola2020-12-211-2/+2
| | | | | | | | | | This has always been cause of confusion, e.g. see: https://github.com/giampaolo/psutil/pull/1727#issuecomment-698934643 Removed the reference to "physical" from dostrings, functions and test. I still left it in the doc though, as it's more explanatory. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* fix #1875: username return ERROR_NONE_MAPPEDGiampaolo Rodola2020-12-141-0/+13
|
* [Windows] #1877: turn OpenProcess -> ERROR_SUCCESS into AD or NSP (#1887)Giampaolo Rodola2020-12-141-19/+12
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* Rewrite Linux prlimit() with ctypes (Linux wheels) (#1879)Giampaolo Rodola2020-11-151-1/+1
|
* Add support for Windows Nano Server (#1768)Julien Lebot2020-07-051-25/+41
|
* Windows: refactor proc username(), split it in 2 functionsGiampaolo Rodola2020-05-051-53/+58
|
* #1693: also increase precision of users()'s login timeGiampaolo Rodola2020-02-131-10/+6
|
* refactoring: get rid of duplicated code; use one function to return (user, ↵Giampaolo Rodola2020-02-131-45/+5
| | | | | | | | | | | | | | sys, create time) rename method remove unnecessary wrap_exceptions deco bind cpu_times() and create_time() with oneshot() rename var remove cache for proc_times(): unnecessary because create_time() is already cached
* [Windows] increase precision of boot_time() and proc create_time() (#1693)Giampaolo Rodola2020-02-131-58/+13
|
* Add support for PyPy on Windows (#1686)Giampaolo Rodola2020-02-111-8/+14
|
* [Windows] use NtQuerySystemInformation to determine process exe() (#1677)Giampaolo Rodola2020-02-011-55/+61
|
* Properly handle PID type in C (#1672)Giampaolo Rodola2020-01-291-50/+51
|
* fix #1662: QueryFullProcessImageNameW may fail with error code = 0 (Win API ↵Giampaolo Rodola2020-01-141-1/+5
| | | | bug?)
* properly cleanup C threadGiampaolo Rodola2020-01-141-4/+3
|
* check MALLOC_ZERO ret codeGiampaolo Rodola2020-01-141-6/+0
|
* print/set syscall origin when raising NSP or ADGiampaolo Rodola2020-01-141-14/+14
|
* #1652 remove Windows Vista referencesGiampaolo Rodola2020-01-111-4/+1
|
* #1652: remove win XP code path checking avilability of GetTickCount64Giampaolo Rodola2020-01-111-11/+1
|
* get rid of globals.c; move stuff in _psutil_common.cGiampaolo Rodola2020-01-061-3/+1
|
* fix some win testsGiampaolo Rodola2020-01-061-1/+1
|
* fix #1656: [Windows] Process.memory_full_info() raises AccessDenied even for ↵Giampaolo Rodola2020-01-061-1/+1
| | | | the current user and os.getpid()
* refactor win C code: use original WinAPI functions and remove psuil_ prefixGiampaolo Rodola2020-01-051-10/+10
|
* rm duplicated C codeGiampaolo Rodola2020-01-031-120/+0
|
* windows: move get_process_info() into process_info.c to make room for CygwinGiampaolo Rodola2020-01-031-88/+0
|
* fix compiler warning + remove cruftGiampaolo Rodola2020-01-031-4/+4
|
* rename global.c -> globals.cGiampaolo Rodola2020-01-031-1/+1
|
* #1652: remove inet_ntop.cGiampaolo Rodola2020-01-021-1/+0
|
* Windows: split C modules (#1655)Giampaolo Rodola2020-01-021-1069/+8
|
* #1652: also drop support for Windows Server 2003Giampaolo Rodola2020-01-021-4/+0
|
* Drop windows XP support (#1652)Giampaolo Rodola2020-01-011-76/+3
| | | | minimum supported now is Windows Vista
* win: split code into new process_utils.cGiampaolo Rodola2019-12-301-0/+1
|
* windows: move net_connections() in socks.cGiampaolo Rodola2019-12-301-460/+2
|
* fix compilation err on winGiampaolo Rodola2019-11-221-1/+1
|