How can i capture image from specific window with SetWindowDisplayAffinity = 1? I know OBS Studio with "Game Capture" resource and NVIDIA ShadowPlay can do this, but i don't know how.
I already tried to capture the window image by BitBlt and PrintWindow and was unsuccessful. All those functions returns a black screen.
I think OBS uses DirectX driver, but I have no idea how to use.