IltmmWMProfile::GetStreamByNumber Example for C++
For complete code, refer to the CNVWM demo.
void RemoveStreamByNumber(long lStreamNumber, IltmmWMProfile *pProfile)
{
IltmmWMStreamConfig *pStreamConfig = NULL;
char strQ[50];
pProfile->GetStreamByNumber (lStreamNumber, &pStreamConfig);
if(pStreamConfig)
{
sprintf(strQ, "Remove stream number %d ?", lStreamNumber);
if (MessageBox(NULL, strQ, "Confirm", MB_YESNO) == IDYES)
{
pProfile->RemoveStream (pStreamConfig);
// or, you can remove it by :
// pProfile->RemoveStreamByNumber(lStreamNumber);
pStreamConfig->Release();
}
}
}