IDirectMusicTool::GetMediaTypeArraySize

The IDirectMusicTool::GetMediaTypeArraySize method retrieves the size of the array that must be passed into the IDirectMusicTool::GetMediaTypes method. A return value of 0 indicates that the tool handles all types, and it is unnecessary to call GetMediaTypes.

HRESULT GetMediaTypeArraySize(
  DWORD* pdwNumElements
);
 

Parameters

pdwNumElements
Address of a variable to receive the number of media types. If 0 is returned in this field, all types are supported.

Return Values

Return values are determined by the implementation. If successful, the method should return S_OK. If it fails, the method may return E_POINTER.

QuickInfo

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