Mercurial > minori
diff dep/animia/src/fd/win32.cc @ 169:e44b7c428d7c
dep/animia: add libkvm method (UNTESTED)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 19 Nov 2023 17:30:38 -0500 |
parents | cdf79282d647 |
children | c413e475f496 |
line wrap: on
line diff
--- a/dep/animia/src/fd/win32.cc Sun Nov 19 05:36:41 2023 -0500 +++ b/dep/animia/src/fd/win32.cc Sun Nov 19 17:30:38 2023 -0500 @@ -1,8 +1,3 @@ -/* -** win32.cpp -** - provides support for Windows clients -** -*/ #include "animia/fd/win32.h" #include "animia/util/win32.h" #include "animia.h" @@ -24,12 +19,18 @@ #include <winternl.h> /* This file is noticably more complex than Unix and Linux, and that's because - there is no "simple" way to get the paths of a file. In fact, this thing requires - you to use *internal functions* that can't even be linked to, hence why we have to - use GetProcAddress and such. What a mess. */ + * there is no "simple" way to get the paths of a file. In fact, this thing requires + * you to use *internal functions* that can't even be linked to, hence why we have to + * use GetProcAddress and such. What a mess. + * + * Speaking of which, because this file uses internal functions of the OS, it is not + * guaranteed to work far into the future. However, it has worked since NT 6.0 (Vista) + * at least, so it's unlikely to be changed much ever. +*/ /* SystemExtendedHandleInformation is only available in NT 5.1+ (XP and higher) and provides information for - 32-bit PIDs, unlike SystemHandleInformation */ + * 32-bit PIDs, unlike SystemHandleInformation +*/ constexpr SYSTEM_INFORMATION_CLASS SystemExtendedHandleInformation = static_cast<SYSTEM_INFORMATION_CLASS>(0x40); /* more constants not in winternl.h */