Platform SDK: DirectX

ID3DXContext::GetDD

The ID3DXContext::GetDD method retrieves a pointer to an IDirectDraw7 interface.

LPDIRECTDRAW7 GetDD();

Parameters

None.

Return Values

If the method succeeds, the method returns a pointer to an IDirectDraw7 interface.

If the method fails, NULL is returned.

Remarks

Applications use the returned IDirectDraw7 interface to call DirectDraw methods.

Note that a reference count is maintained for the DirectDraw object encapsulated by a context object. So, it is the application's responsibility to release the IDirectDraw7 interface when it is no longer needed by the application.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxcore.h.
  Library: Use d3dx.lib.