Mercurial > minori
diff dep/animone/src/fd/win32.cc @ 310:a4257370de16
dep/animone: prepare for v1.0 release; it should be ready by now
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 11 Jun 2024 04:38:51 -0400 |
parents | b1f625b0227c |
children | a7d4e5107531 |
line wrap: on
line diff
--- a/dep/animone/src/fd/win32.cc Tue Jun 11 04:24:59 2024 -0400 +++ b/dep/animone/src/fd/win32.cc Tue Jun 11 04:38:51 2024 -0400 @@ -1,3 +1,16 @@ +/* + * fd/win32.cc: support for windows + * + * this file is noticably more complex than *nix, 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. + * + * Speaking of which, because this file uses internal functions of the OS, it is not + * even guaranteed to work far into the future. however, just like with macOS, these + * things have stayed the same since Vista so if Microsoft *really* wants compatibility + * then they're pretty much forced to keeping this the same anyway. + */ #include "animone/fd/win32.h" #include "animone.h" #include "animone/util/win32.h" @@ -18,16 +31,6 @@ #include <windows.h> #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. - * - * 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 */