DDERR_INVALIDSURFACETYPE

Code: 0x88760250 (2289435216)

As HRESULT:As NTSTATUS:

Documented in Win32

DirectDraw Return Codes (ddraw.h)

The surface was of the wrong type.