在 2022-05-29 22:26, Biswapriyo Nath 写道:
+ typedef enum _RTL_UMS_THREAD_INFO_CLASS UMS_THREAD_INFO_CLASS, *PUMS_THREAD_INFO_CLASS; + typedef enum _RTL_UMS_SCHEDULER_REASON UMS_SCHEDULER_REASON;
I am not sure whether these are necessary. Without a definition, this will not compile as C++, because the size of such an enum can not be determined:
```
test.cc:2:14: error: use of enum '_RTL_UMS_THREAD_INFO_CLASS' without
previous declaration
2 | typedef enum _RTL_UMS_THREAD_INFO_CLASS UMS_THREAD_INFO_CLASS,
*PUMS_THREAD_INFO_CLASS;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
```
However these work here by accident, just because they have already been defined in 'winnt.h', which
renders such declarations unneeded. Probably they should be commented out.
+#define PROCESS_CREATION_MITIGATION_POLICY2_XTENDED_CONTROL_FLOW_GUARD_MASK (0x00000003ui64 << 40)+#define PROCESS_CREATION_MITIGATION_POLICY2_XTENDED_CONTROL_FLOW_GUARD_DEFER (0x00000000ui64 << 40) +#define PROCESS_CREATION_MITIGATION_POLICY2_XTENDED_CONTROL_FLOW_GUARD_ALWAYS_ON (0x00000001ui64 << 40) +#define PROCESS_CREATION_MITIGATION_POLICY2_XTENDED_CONTROL_FLOW_GUARD_ALWAYS_OFF (0x00000002ui64 << 40) +#define PROCESS_CREATION_MITIGATION_POLICY2_XTENDED_CONTROL_FLOW_GUARD_RESERVED (0x00000003ui64 << 40) +
Please the standard `ULL` literal suffixes here, instead of the Microsoft-specific `ui64`. -- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
