Microsoft DirectX 8.0 (C++)

IDirectMusicPortDownload8::GetBuffer

Retrieves the IDirectMusicDownload8 interface pointer of a buffer whose unique identifier is known.

HRESULT GetBuffer(
  DWORD dwDLId,
  IDirectMusicDownload** ppIDMDownload
);

Parameters

dwDLId
Download identifier of the buffer. See DMUS_DOWNLOADINFO.
ppIDMDownload
Address of a variable that receives the IDirectMusicDownload8 interface pointer for the buffer.

Return Values

If the method succeeds, the return value is S_OK.

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

E_POINTER
DMUS_E_INVALID_DOWNLOADID
DMUS_E_NOT_DOWNLOADED_TO_PORT

Requirements

  Header: Declared in dmusicc.h.

See Also

IDirectMusicPortDownload8::GetDLId, IDirectMusicDownload8::GetBuffer, Low-Level DLS.