IDirectDrawSurface7::ChangeUniquenessValue method (ddraw.h)

Manually updates the uniqueness value for this surface.

Syntax

HRESULT ChangeUniquenessValue();

Parameters

This method has no parameters.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_EXCEPTION
  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS

Remarks

DirectDraw automatically updates uniqueness values whenever the contents of a surface change.

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the ChangeUniquenessValue method.

Requirements

   
Target Platform Windows
Header ddraw.h
Library Ddraw.lib
DLL Ddraw.dll

See also

IDirectDrawSurface7