Added code for testing WinAPI/Direct3D.