codec name


I am using this API function to popup a dialog with available AVI codecs on a users system:


Everything is working ok with it. I'm wondering if I can get the name of the codec the user picked from the combo list in the dilaog, like:

    Cinepak Codec by Radius
    Microsoft Video 1
    Full Frames (Uncompressed)

Right now it just fills in a AVICOMPRESSOPTIONS structure after the user has chosen a codec. How can I get the name of the codec they chose out of that?

Who is Participating?
harris_cConnect With a Mentor Commented:
Maybe you need to read the codec file like when you right-click | properties | version --> description?

for c:\windows\system32\msyuv.dll its "Microsoft UYVY Video Decompressor"


Private Sub Button1_Click(ByVal sender _
As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
' Get the file version for the notepad
Dim FileProperties As FileVersionInfo =
' Retrieve the file description (name)
TextBox1.Text = FileProperties.FileDescription
'Retrieve the file version
TextBox2.Text = FileProperties.FileVersion
'Retrieve the file's internal name
TextBox3.Text = FileProperties.InternalName
'Retrieve the file's original name
TextBox4.Text = FileProperties.OriginalFilename
'Retrieve the product name
TextBox5.Text = FileProperties.ProductName
'Retrieve the product version
TextBox6.Text = FileProperties.ProductVersion
'Retrieve the language
TextBox7.Text = FileProperties.Language
End Sub

Thanks minnirok =)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.