'AVIFileEndRecord function marks the end of a record when writing an interleaved file that uses a 1:1 interleave factor of video to audio data. (Each frame of video is interspersed with an equivalent amount of audio data.)
Private Declare Function AVIFileEndRecord Lib "avifil32.dll" (ByVal pfile As Long)
' pfile Handle to an open AVI file.
'Returns zero if successful or an error otherwise.
'The AVISave function uses this function internally. In general, applications should not need to use this function.