]> mj.ucw.cz Git - pciutils.git/commit
windows: Improve version detection
authorPali Rohár <pali@kernel.org>
Sat, 16 Aug 2025 01:17:25 +0000 (03:17 +0200)
committerMartin Mareš <mj@ucw.cz>
Sun, 28 Dec 2025 20:49:06 +0000 (21:49 +0100)
commit49dc598a81b59fd6132e1c6e59160b27eb176d1c
tree7ec5a1ba60694b72e7dca2fc5b9ac7619e715971
parent79f4c2896c2101b1d3be682639dff2abb7b744ac
windows: Improve version detection

Move version detection code into helper functions, which can be reused.

For 32-bit x86 builds use GetVersion() which is available in all Windows
versions instead of GetVersionEx().
lib/physmem-windows.c
lib/win32-helpers.c
lib/win32-helpers.h
lib/win32-kldbg.c