Microsoft DirectX 8.1 (C++)

IDirect3DSurface8::FreePrivateData

Frees the specified private data associated with this surface.

HRESULT FreePrivateData(
  REFGUID refguid
);

Parameters

refguid
[in] Reference to (C++) or address of (C) the globally unique identifier that identifies the private data to free.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be one of the following values.

D3DERR_INVALIDCALL
D3DERR_NOTFOUND

Remarks

Microsoft® Direct3D® calls this method automatically when a surface is released.

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.

See Also

IDirect3DSurface8::GetPrivateData, IDirect3DSurface8::SetPrivateData