c++ - Duplicating Windows desktop more than one time -
I have to duplicate the desktop in a set of windows I have done this:
ID3D11Device * Device; D3D11CreateDevice (... and Device) ... IDXGIOutputDuplication * DeskDupl; IDXGIOutput1 :: duplicate optup (device, deskdepple); This works fine for a window to duplicate the desktop, but for the second window I get E_INVALIDARG at DuplicateOutput () . MSDN says that this means: The calling app is already duplicating this desktop output. Is it possible to duplicate the desktop on some windows, not just one?
is not from your view, see the remmars section of the method
By default, only four processes can use an IDXGIOutputDuplication interface at the same time within a session. In one process, there may be only a desktop repeat interface on a single desktop output; However, in that process there may be a desktop duplication interface for each output, which is part of the desktop. But you can do it in other ways, if you want to present the same view in different windows, then I recommend using several swap chains.
Comments
Post a Comment