The documentation doesn't say it's allowed but they are allowed by the
Windows Application Certification Kit and the 19041 Windows SDK.

It is not allowed in older SDK. It won't compile or won't link.
The target DLL [1] will likely not have the function, so it should not
be used when targeting older Windows 10 versions in UWP mode.

We already have api-ms-win-core-errorhandling-l1-1-0 in mincore and windowsapp.

[1] 
https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-errorhandling-l1-1-0dll
---
 mingw-w64-headers/include/errhandlingapi.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-headers/include/errhandlingapi.h 
b/mingw-w64-headers/include/errhandlingapi.h
index 806f7c968..1496b21d1 100644
--- a/mingw-w64-headers/include/errhandlingapi.h
+++ b/mingw-w64-headers/include/errhandlingapi.h
@@ -26,9 +26,6 @@ typedef PTOP_LEVEL_EXCEPTION_FILTER 
LPTOP_LEVEL_EXCEPTION_FILTER;
   WINBASEAPI ULONG WINAPI RemoveVectoredExceptionHandler (PVOID Handle);
   WINBASEAPI PVOID WINAPI AddVectoredContinueHandler (ULONG First, 
PVECTORED_EXCEPTION_HANDLER Handler);
   WINBASEAPI ULONG WINAPI RemoveVectoredContinueHandler (PVOID Handle);
-#if _WIN32_WINNT >= 0x0600
-  WINBASEAPI UINT WINAPI GetErrorMode (VOID);
-#endif
 
 #if !defined (RC_INVOKED) && defined (WINBASE_DECLARE_RESTORE_LAST_ERROR)
   WINBASEAPI VOID WINAPI RestoreLastError (DWORD dwErrCode);
@@ -42,6 +39,10 @@ typedef PTOP_LEVEL_EXCEPTION_FILTER 
LPTOP_LEVEL_EXCEPTION_FILTER;
 
 #endif
 
+#if _WIN32_WINNT >= 0x0600 && (WINAPI_FAMILY_PARTITION 
(WINAPI_PARTITION_DESKTOP) || NTDDI_VERSION >= NTDDI_WIN10_VB)
+  WINBASEAPI UINT WINAPI GetErrorMode (VOID);
+#endif
+
 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
   WINBASEAPI VOID WINAPI RaiseException (DWORD dwExceptionCode, DWORD 
dwExceptionFlags, DWORD nNumberOfArguments, CONST ULONG_PTR *lpArguments);
   WINBASEAPI UINT WINAPI SetErrorMode (UINT uMode);
-- 
2.39.2



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to