A lot of code is obsolete after lifting the supported platform level to Windows Vista and removal of Windows CE in 5.7 onwards. Things to do:
- Remove Windows CE code paths
- Hard link functions that can now be directly linked against in shell32.dll, user32.dll, dwmapi.dll, uxtheme.dll, requiring some fixup of wrong prototypes, etc
- Bump WINVER/_WIN32_NT for MinGW.