It's an enum [1] in the Windows.Foundation namespace but in the generated header it's not supposed to have the AsyncStatus_ prefix nor the namespace. So it's equivalent to a global enum.
It's supposed to be declared in a separate IDL/header but we can declare it here. [1] https://docs.microsoft.com/en-us/windows/win32/api/asyncinfo/ne-asyncinfo-asyncstatus --- mingw-w64-headers/include/windows.foundation.idl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mingw-w64-headers/include/windows.foundation.idl b/mingw-w64-headers/include/windows.foundation.idl index 6f7c26d64..97b533608 100644 --- a/mingw-w64-headers/include/windows.foundation.idl +++ b/mingw-w64-headers/include/windows.foundation.idl @@ -16,6 +16,14 @@ typedef struct EventRegistrationToken { UINT64 Value; } EventRegistrationToken; +typedef [v1_enum] enum AsyncStatus +{ + Started = 0, + Completed, + Canceled, + Error, +} AsyncStatus; + namespace Windows { namespace Foundation { interface IAsyncInfo; @@ -33,13 +41,6 @@ namespace Windows { namespace Windows { namespace Foundation { - typedef enum AsyncStatus { - Started, - Completed, - Canceled, - Error - } AsyncStatus; - typedef struct DateTime { UINT64 UniversalTime; } DateTime; -- 2.29.2 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
