LPDIRECT3DSURFACE8 lpBackSurface = NULL;if (FAILED(m_pDevice->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &lpBackSurface))) {}D3DLOCKED_RECT LockedRect;if (FAILED(lpBackSurface->LockRect(&LockedRect, NULL, D3DLOCK_READONLY))) {}LPBYTE lpSrc = reinterpret_cast<LPBYTE>(LockedRect.pBits);LPBYTE lpDest = new BYTE[SCREEN_SIZE];memcpy(lpDest, lpSrc, SCREEN_SIZE);