Then these functions should be placed in an `#if ... #endif` block,
whose condition is `_WIN32_WINNT >= 0x0602`.
They are already ``there''; I have added these functions into
**existed** define-guard with condition you specified. Here, this is the
original file before my changes (with line numbers):
> 146 #if _WIN32_WINNT >= 0x0602
> 147 WINBASEAPI VOID WINAPI GetCurrentThreadStackLimits ...
> 148 WINBASEAPI WINBOOL WINAPI SetProcessMitigationPolicy ...
> 149 WINBASEAPI WINBOOL WINAPI GetProcessMitigationPolicy ...
> 150 #endif
And, according to my diff, the patch begins at line #150:
@@ -147,6 +147,19 ...
WINBASEAPI VOID WINAPI GetCurrentThreadStackLimits ...
WINBASEAPI WINBOOL WINAPI SetProcessMitigationPolicy ...
WINBASEAPI WINBOOL WINAPI GetProcessMitigationPolicy ...
+
...
... and ends just before that `#endif` from above. Therefore, all three
functions were placed into the `#if _WIN32_WINNT >= 0x0602` define-guard.
Also, all three functions in my patch are located within this block:
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
, while Microsoft Windows SDK 10 puts them into this one:
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP |
WINAPI_PARTITION_SYSTEM)
The latter `WINAPI_PARTITION_SYSTEM` stands for ``System application''
and currently it is not used in mingw-w64, I believe.
On 9/27/2018 4:30 PM, Liu Hao wrote:
在 2018/9/27 16:41, Ruslan Garipov 写道:
This patch adds functions to retrieve pseudo-handles of process or/and
threads used to specify their tokens.
The functions are missed in the mingw-w64's headers but exist in headers
of Microsoft Windows SDK v10.0.14393.0 and later. According to the
original (Windows SDK's) file ``processthreadsapi.h'' the function are
available starting from Microsoft Windows 8, but I did not found them in
Microsoft Windows SDK 8 header file(s).
Signed-off-by: Ruslan Garipov <ruslanngari...@gmail.com>
---
mingw-w64-headers/include/processthreadsapi.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
Then these functions should be placed in an `#if ... #endif` block,
whose condition is `_WIN32_WINNT >= 0x0602`.
--
Yours truly,
Ruslan Garipov <ruslanngaripov at gmail dot com>.
----------------------------------------------
MinGW-w64 developer, with write after approval
GEDKeeper collaborator
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public