public static Avi.AVICOMPRESSOPTIONS_CLASS ShowCodecsDialog()
{
Int32 streamtypeVIDEO = mmioFOURCC('v', 'i', 'd', 's');
AVIFileInit();
int file = 0;
AVIFileOpen(ref file, "clock.avi", 0, 0);
IntPtr stream = IntPtr.Zero;
AVIFileGetStream(file, out stream, streamtypeVIDEO, 0);
Avi.AVICOMPRESSOPTIONS_CLASS options = new Avi.AVICOMPRESSOPTIONS_CLASS();
options.fccType = streamtypeVIDEOU;
options.lpParms = IntPtr.Zero;
options.lpFormat = IntPtr.Zero;
AVISaveOptions(IntPtr.Zero, ICMF_CHOOSE_KEYFRAME, 1, ref stream, ref options);
AVISaveOptionsFree(1, ref options);
AVIFileRelease(file);
AVIFileExit();
// Avi.AVICOMPRESSOPTIONS_CLASS myOpts;
// myOpts.cbFormat = options.cbFormat;
return options;
}