'AVIFileCreateStream function creates a new stream in an existing file and creates an interface to the new stream.
Public Declare Function AVIFileCreateStream Lib "avifil32.dll" (ByVal pfile As Integer, ByRef ppavi As IntPtr, ByRef psi As AVI_STREAM_INFO) As Long
' pfile Handle to an open AVI file.
' ppavi Pointer to the new stream interface.
' psi Pointer to a structure containing information about the new stream, including the stream type and its sample rate.
'
'Returns zero if successful or an error otherwise. Unless the file has been opened with write permission, this function returns AVIERR_READONLY.
None