'AVIBuildFilter function builds a filter specification that is subsequently used by the GetOpenFileName or GetSaveFileName function.
Private Declare Function AVIBuildFilter Lib "avifil32.dll" (ByVal lpszFilter As String, ByVal cbFilter As Long, ByVal fSaving As Long)
'Parameters
' lpszFilter Pointer to the buffer containing the filter string.
' cbFilter Size, in characters, of buffer pointed to by lpszFilter.
' fSaving Flag that indicates whether the filter should include read or write formats. Specify TRUE to include write formats or FALSE to include read formats.
'
'
Return Values
'
Returns AVIERR_OK
if successful or an error otherwise. Possible error values include the following.
'
|
Value |
Description |
|
AVIERR_BUFFERTOOSMALL |
The buffer size cbFilter was smaller than the generated filter specification |
|
AVIERR_MEMORY |
There was not enough memory to complete the read operation. |
This function accesses the registry for all filter types that the AVIFile library can use to open, read, or write multimedia files. It does not search the hard disk for filter DLLs and formats.
avifil32.dll
when avifil32.dll is loaded The following files are loaded as well:
msvcrt.dll
USER32.dll
KERNEL32.dll
GDI32.dll
WINMM.dll
ADVAPI32.dll
ole32.dll
MSACM32.dll
MSVFW32.dll
Comming Soon