|Microsoft DirectX 9.0|
Create an off-screen surface.
UINT Width, UINT Height, D3DFORMAT Format, DWORD Pool, IDirect3DSurface9** ppSurface, HANDLE* pHandle );
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be:
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.
D3DPOOL_SCRATCH will return a surface that has identical characteristics to a surface created by the Microsoft?DirectX?8.x method CreateImageSurface.
D3DPOOL_MANAGED is not allowed when creating an offscreen plain surface. For more information about memory pools, see D3DPOOL.
Off-screen plain surfaces are always lockable, regardless of their pool types.