Click or drag to resize

IMcStreamGetAllFileFormats Method

Method used to query for installed File Formats in a certain Access Mode.

Namespace:  MediaCy.IQL.IO
Assembly:  MediaCy.IQL.IO (in MediaCy.IQL.IO.dll) Version: 10.0.6912.0
Syntax
VB
Function GetAllFileFormats ( 
	Mode As mcfmFileMode,
	<OutAttribute> ByRef extensions As Object,
	<OutAttribute> ByRef descriptions As Object
) As Integer

Parameters

Mode
Type: MediaCy.IQL.IOmcfmFileMode
extensions
Type: SystemObject
descriptions
Type: SystemObject

Return Value

Type: Int32
LONG indicating the number of values in the safearrays
Remarks
This method is used by the Open and SaveAs dialog boxes to populate the File Formats drop down box. The method does not instantiate any Subclasses, but uses the Registry to query for McStream information. The extensions and descriptions arrays have a 1-1 relationship so that descriptions(n) contains the description for the Stream with extension extensions(n).
Examples
VB
Dim extensions as Variant
Dim descriptions as Variant
Images.File.GetAllFileFormats(mcSTREAM_READ, extensions, descriptions)
' Print out the first extension and it's description
Debug.Print "Extension " & extensions(0) & ", Name " & descriptions(0)
' Print out the last extensions and it's description
Debug.Print "Extension " & extensions(ReturnValue)
See Also