HRESULT HookIDirect3DDevice9::GetFrontBufferData(LPVOID _this, UINT iSwapChain, IDirect3DSurface9* pDestSurface) { LOG_API(); return pD3Dev->GetFrontBufferData(iSwapChain, pDestSurface); }
VOID Produce() { HRESULT hr ; hr = g_pd3dDevice->GetFrontBufferData(0, g_SurfPool[in]) ; if (FAILED(hr)) { MessageBox(NULL, "Get desktop image failed!", "Error", 0) ; } else { in = (in + 1) % g_PoolSize ; } }