IltmmPlay::get_MidiRenderers Example for C++
// This function deselects all MIDI renderers from
// the specified play object.
void DisplayMidiRenderers(IltmmPlay *pPlay)
{
IltmmRenderers *pRenderers = NULL;
IltmmRenderer *pRenderer = NULL;
long lCount;
HRESULT hr = pPlay->get_MidiRenderers (&pRenderers);
if(FAILED(hr) || pRenderers == NULL)
return;
pRenderers->get_Count (&lCount);
for(int i=0; i<lCount; i++)
{
pRenderers->Item (i, &pRenderer);
pRenderer->put_Selected (VARIANT_FALSE);
pRenderer->Release();
}
pRenderers->Release();
}