The winternl.h header file in mingw-w64 contains incorrect definition of struct _TEB and struct _PEB. Nevertheless, struct _TEB doesn't contain ProcessEnvironmentBlock member. Please change those structs as mentioned in Windows SDK header files.
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public