Microsoft DirectX 8.0 (C++)

IDirectMusicStyle8::GetBand

Retrieves the named band.

HRESULT GetBand(
  WCHAR* pwszName, 
  IDirectMusicBand** ppBand
);

Parameters

pwszName
Name of the band to be retrieved. This name is assigned by the author of the style.
ppBand
Address of a variable that receives the IDirectMusicBand8 interface pointer of the band.

Return Values

If the method succeeds, the return value is S_OK if a band is returned, or S_FALSE if there is no band with that name.

If the method fails, the return value can be E_POINTER.

Requirements

  Header: Declared in dmusici.h.

See Also

IDirectMusicStyle8::GetDefaultBand, Using Bands