If you ever need to do this sin, just include qt_windows.h and you are free to access native Win32 API.
To ensure the monster still compiles on other platforms, you may even use #ifdef Q_WS_WIN evilness as well.
Enjoy your objectionable life.
5 More Red Flags for Suspicious Files 🚩
3 days ago