Platform SDK: DirectX

IDirectMusicBuffer::GetBufferFormat

The IDirectMusicBuffer::GetBufferFormat method retrieves the GUID representing the buffer format.

HRESULT GetBufferFormat(
  LPGUID pGuidFormat
);

Parameters

pGuidFormat
Address of a variable to receive the GUID of the buffer format.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return E_POINTER.

Remarks

If the format was not specified when the buffer was created, KSDATAFORMAT_SUBTYPE_DIRECTMUSIC is returned in *pGuidFormat.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusicc.h.

See Also

IDirectMusic::CreateMusicBuffer, DMUS_EVENTHEADER