Rebzzel / kiero

Universal graphical hook for a D3D9-D3D12, OpenGL and Vulkan based games.
MIT License
1.03k stars 219 forks source link

hook windows dwm #33

Closed zhongguo1987 closed 3 years ago

zhongguo1987 commented 3 years ago

I think hook windows DWM, but I can't find DirectX related dynamic library in DWM. DirectX exists in dwmcore.dll loaded by DWM. What can I do to use this library

Rebzzel commented 3 years ago

Inject your code into dwm.exe?

zhongguo1987 commented 3 years ago

Inject your code into dwm.exe?

I Want to hook DXGISwapPresent,capture desktop images

Rebzzel commented 3 years ago

DXGISwapPresent

You mean IDXGISwapChain::Present?

zhongguo1987 commented 3 years ago

DXGISwapPresent

You mean IDXGISwapChain::Present?

yes,I use the ultimate version of win7 SP1, through hook, in the module can not find DXGI, debug code tracking, win7 uses D3D10_ 1 version, you develop this library is very good, what method can support, thank you

Rebzzel commented 3 years ago

https://github.com/Rebzzel/kiero/blob/35d4e4f7510f9123646f759beede172d22a85650/kiero.cpp#L239

So the index is 8:

https://github.com/Rebzzel/kiero/blob/35d4e4f7510f9123646f759beede172d22a85650/METHODSTABLE.txt#L131

zhongguo1987 commented 3 years ago

https://github.com/Rebzzel/kiero/blob/35d4e4f7510f9123646f759beede172d22a85650/kiero.cpp#L239

So the index is 8:

https://github.com/Rebzzel/kiero/blob/35d4e4f7510f9123646f759beede172d22a85650/METHODSTABLE.txt#L131

thank you,I try it .