CreateSwapChainForHwnd failed with result 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE' (0x887A0022), falling back to legacy CreateSwapChain
用DXGI_ERROR_NOT_CURRENTLY_AVAILABLE百度下:
https://vimsky.com/examples/detail/cpp-ex---IDXGIOutput-FindClosestMatchingMode-method.html
https://learn.microsoft.com/zh-cn/windows/win32/api/dxgi/nf-dxgi-idxgifactory-makewindowassociation
解决方案
不要在rdp会话里跑业务,在自建vnc会话里跑业务,自建vnc可参考https://cloud.tencent.com/developer/article/1853791