private void btAudioSettings_Click(object sender, RoutedEventArgs e) { string name = cbAudioCodecs.Text; if (VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.Default)) { VideoCapture.Audio_Codec_Show_Dialog(IntPtr.Zero, name, VFPropertyPage.Default); } else { if (VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.VFWCompConfig)) { VideoCapture.Audio_Codec_Show_Dialog(IntPtr.Zero, name, VFPropertyPage.VFWCompConfig); } } }