| Microsoft DirectX 8.1 (C++) | 
Generates a copy of the device's front buffer and places that copy in a system memory buffer provided by the application.
HRESULT GetFrontBuffer( IDirect3DSurface8* pDestSurface );
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be one of the following values.
| D3DERR_DEVICELOST | 
| D3DERR_INVALIDCALL | 
The buffer pointed to by pDestSurface will be filled with a representation of the front buffer, converted to the standard 32bpp format, D3DFMT_A8R8G8B8.
This method is the only way to capture an anti-aliased screen shot.
For more information, see Lost Devices.
  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.