Glossary Item Box

ImageMan DLL Suite Version 8 Submit feedback on this topic   

ImgXGetExt

int IMAPI ImgXGetExt (lpszBuf)

This function is used to retrieve the export extensions currently supported by ImageMan.

 

Parameter

Type

Description

lpszBuf

LPSTR

Points to the buffer to hold the extension list.

 

 

 

Return Value

The return value depends on the lpszBuf parameter: if lpszBuf is NULL, the return value is the size of the buffer needed to hold the extension string; if lpszBuf is not NULL, the return value is IMG_OK.

Comments

This function copies the list of export extensions currently supported by ImageMan/X into the buffer pointed to by lpszBuf. lpszBuf should be large enough to contain the string; to determine the string length, call this function with lpszBuf set to NULL. The returned extensions are of the form:

 

ext;description~ext;description~....~ext;description

 

where each extension is separated by a  ~'(tilde), "ext" is the (up to) 3 letter file extension and "description" is a short textual description of the extension. For example:

 

PCX;Publisher's Paintbrush (*.pcx)~BMP;Windows Bitmap (*.bmp)

The short textual description is designed to be used in a dialog box as a description of each extensions's format.

 

 


Copyright 2008 Data Techniques, Inc. All Rights Reserved