| 71 | } |
| 72 | |
| 73 | void ** 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 | |
| 81 | HRESULT WINAPI D3D9Present(IDirect3DDevice9 *pDev, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) { |
| 82 | D3D9FrameGrabber *d3d9FrameGrabber = D3D9FrameGrabber::getInstance(); |
no test coverage detected