Before those days, the solution would be to make use of WinG, the DirectX precursor, still introduced in Windows 3.0
https://www.gamedeveloper.com/programming/a-whirlwind-tour-o...
https://betawiki.net/wiki/WinG