DirectX SDK

DirectDrawSurface7.GetUniquenessValue

The DirectDrawSurface7.GetUniquenessValue method retrieves the current uniqueness value for this surface.

object.GetUniquenessValue() As Long

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.

Return Values

If the method succeeds, it returns the current uniqueness value of the surface.

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

Remarks

The only defined uniqueness value is 0, to indicate that the surface is likely to be changing beyond the control of DirectDraw. Other uniqueness values are only significant if they differ from a previously cached uniqueness value. If the current value is different than a cached value, the contents of the surface have changed.

See Also

DirectDrawSurface7.ChangeUniquenessValue