DirectX SDK

DirectDrawSurface7.GetDirectDrawGammaControl

The DirectDrawSurface7.GetDirectDrawGammaControl method returns the DirectDrawGammaControl object used with the surface.

object.GetDirectDrawGammaControl() As DirectDrawGammaControl

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.

Return Values

If the method succeeds, it returns a DirectDrawGammaControl 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