// This function will assign a new profile to the capture object
void ChangeProfile(IltmmCapture *pCapture, IltmmWMProfile* pProfile)
{
HRESULT hr = pCapture->put_WMProfile(pProfile);
if (SUCCEEDED(hr))
{
// profile was successfully set
}
}