DirectX SDK

DirectDrawSurface7.GetDirectDrawColorControl

The DirectDrawSurface7.GetDirectDrawColorControl method returns the DirectDrawColorControl object used with the surface.

object.GetDirectDrawColorControl() As DirectDrawColorControl

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.

Return Values

If the method succeeds, it returns a DirectDrawColorControl object.

Error Codes

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

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS