HRESULT GetConvertDVDDecoderResolution(IltmmConvert *pConvert) { ltmmDVResolution DVRes; CString strDV; // call the Convert object to retrieve the DVD Decoder resolution HRESULT hr = pConvert->get_DVDecoderResolution(&DVRes); if (SUCCEEDED(hr)) { // display the current resolution strDV.Format(TEXT("DV Decoder resolution = %d"), (int)DVRes); MessageBox(NULL, strDV, TEXT("DVD Decoder Resolution"), MB_OK); } return hr; }