DirectX SDK

DirectDrawSurface7.GetDirectDraw

The DirectDrawSurface7.GetDirectDraw method retrieves the DirectDraw object that was used to create the surface.

object.GetDirectDraw() As DirectDraw7

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.

Return Values

If the method succeeds, it returns a DirectDraw7 object.

Error Codes

If the method fails, itr raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

Remarks

The object returned by a successful function call must be assigned to a DirectDraw7 object variable. For example:

Dim DDrawObject as DirectDraw7
Set DDrawObject = object.GetDDInterface()