CreateDevice with DirectX + Win32api environment