MCPcopy Create free account
hub / github.com/Atarity/Lightpack / calcD3d9SCPresentPointer

Method calcD3d9SCPresentPointer

Software/hooks/D3D9FrameGrabber.cpp:73–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void ** D3D9FrameGrabber::calcD3d9SCPresentPointer() {
74 void * hD3d9 = reinterpret_cast<void *>(GetModuleHandleA("d3d9.dll"));
75 m_logger->reportLogDebug(L"m_ipcContext->m_memDesc.d3d9SCPresentFuncOffset = 0x%x, hDxgi = 0x%x", m_ipcContext->m_memDesc.d3d9SCPresentFuncOffset, hD3d9);
76 void ** result = static_cast<void ** >(incPtr(hD3d9, m_ipcContext->m_memDesc.d3d9SCPresentFuncOffset));
77 m_logger->reportLogDebug(L"d3d9.dll = 0x%x, swapchain::present location = 0x%x", hD3d9, result);
78 return result;
79}
80
81HRESULT WINAPI D3D9Present(IDirect3DDevice9 *pDev, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) {
82 D3D9FrameGrabber *d3d9FrameGrabber = D3D9FrameGrabber::getInstance();

Callers 1

initMethod · 0.95

Calls 2

incPtrFunction · 0.85
reportLogDebugMethod · 0.80

Tested by

no test coverage detected