Share via


IDirectDrawSurface5::GetUniquenessValue

This method retrieves the current uniqueness value for this surface.

HRESULT GetUniquenessValue( 
  LPDWORD lpValue
); 

Parameters

  • lpValue
    Address of a variable that will be filled with the surface's current uniqueness value, if the call succeeds.

Return Values

If the method succeeds, the return value is DD_OK.

If the method fails, the return value may be one of the following error values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

Remarks

The only defined uniqueness value is zero, which indicates that the surface is likely to be changing beyond DirectDraw's control. 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, then the contents of the surface have changed.

Requirements

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddraw.h.
Link Library: Ddraw.lib.

See Also

IDirectDrawSurface5::ChangeUniquenessValue

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.