void CaptureScreen(LPDIRECT3DDEVICE9 pDevice, TCHAR szFileName) { if (!pDevice || !szFileName) return; DWORD tickStart = GetTickCount(); // There is 2 Methods // 1. Capture Front Buffer // 2. Capture Back Buffer (Faster) bool isBackBuffer = true; RECT rectWindow = {0}; RECT rectDesktop = {0}; GetClientRect(g_hMainWnd, &rectWindow); GetClientRect(GetDesktopWindow(), &rectDesktop); IDirect3DSurfac..