The EngDeleteSurface function deletes the specified surface.
BOOL
EngDeleteSurface(
IN HSURF hsurf
);
EngDeleteSurface returns TRUE if it is successful in deleting the surface. Otherwise, it returns FALSE and an error code is logged.
Declared in winddi.h. Include winddi.h.