Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooking IDXGISwapChain::Present in another process #1

Open
Linside opened this issue Jun 2, 2022 · 1 comment
Open

Hooking IDXGISwapChain::Present in another process #1

Linside opened this issue Jun 2, 2022 · 1 comment

Comments

@Linside
Copy link

Linside commented Jun 2, 2022

Hi,
The example works well, it is very useful for me! Now I'm considering to capture window of other processes, and made some changes to test:

 // Set the hook object to capture some frames.
 hr = HookT::Get()->CaptureFrames(blackBoxDXWindow.GetHandle(), outputFolder, 10);

to

  // Set the hook object to capture some frames, but for another window.
  HWND hwnd = FindWindowW(NULL, L"Another Window");
  hr = HookT::Get()->CaptureFrames(hwnd, outputFolder, 10);

I'm using dx11 and I found the D3D11PresentHook::SwapChainPresent function still only catching the swapchain of the blackbox window created by its own.
I have noticed that the address of presentPointer_ in D3D11PresentHook::Hook is always the same, so I supposed the polyhook will work like some global hook of SetWindowsHook, but it's seems not.
And now I think the problem is cross-process, do you have any idea of this issue or I missed up something?

@timercrack
Copy link

I have the same question! Can't hooking another process!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants