c++ - Getting DXGI swapchain by HWND -
there simple application works manager of ms rdp sessions. open rdp sessions different computers , can see previews in common monitoring panel.
an ole control used organize rdp session.
cwnd::createcontrol(clsid_msrdpclient6notsafeforscripting, .... previously copied rdp window via printwindow , showed on preview.
printwindow(hwnd, hcompatibledc,0); in windows 10 not work. microsoft spy++ shows following picture
window "output painter window" opcontainerclass window "output painter child window" opwindowclass (invisible) window "output painter dx child window" opwindowclass on older windows "output painter child window" visible , in case printwindow works.
also on windows 10, rdp not work @ if remove dxgi.dll. believe printwindow not work because rdp uses directx draw window content.
i thought directx function hooking picture looks ridiculous. big overhead. can control application entirely. can access rdp opwindowclass hwnds. can control them via showwindow, etc.
is there way directx objects (like idxgiswapchain1 or id2d1hwndrendertarget) connected hwnd?
Comments
Post a Comment