IN_GetFileType

All Editions image\bltlrgsq_shg.gif Related Functions  image\bltlrgsq_shg.gif Example

Each file format has an identifier. The IN_GetFileType function returns the file format identifier for the data in a particular file.

 

Syntax

int IN_GetFileType( pFilename, pFormatID )

Input Parameters

Meaning

CHARPTR | WCHARPTR
pFilename

multibyte | Unicode
pointer to the file name. See Remarks.

Output Parameters

Meaning

USHORT FAR *pFormatID

pointer to the resulting format identifier. See File format IDs.

Remarks

The pFilename input parameter will accept a CHARPTR filename if the client code is compiled using a multibyte character set, or a WCHARPTR filename for a Unicode character set.

Release information

Added to Imagenation for Windows in Release 4.21.

As of Release 5.1, also available in Imagenation for UNIX.

Modified in Release 8.3 to support the WCHARPTR parameter for Unicode.

See also

Selecting file formats