]> mj.ucw.cz Git - pciutils.git/commit
windows: Simplify win32_find_and_open_process_for_query()
authorPali Rohár <pali@kernel.org>
Sun, 30 Nov 2025 15:28:46 +0000 (16:28 +0100)
committerMartin Mareš <mj@ucw.cz>
Sun, 28 Dec 2025 20:49:06 +0000 (21:49 +0100)
commit3b5ea805b8d17edc9b22d13f88fb3e24b5db3050
treeef6fab58f3755bae4a729e6d802b8035778c2dd0
parenta1f6081f3602e06e71af1cf23170cc023d4eb6ab
windows: Simplify win32_find_and_open_process_for_query()

Retrieve information about all processes in system via
NtQuerySystemInformation(SystemProcessInformation) call.
This method returns both process id and process name.
It is supported on all Windows NT based systems.

This replaces complicated code which uses different WinAPI functions
for specific Windows versions.
lib/win32-helpers.c