Structure that specifies information about an image format support by the plug-in.
struct ID_FormatInfo
{
ID_FormatInfo() { ZeroMemory(this, sizeof(*this)); };
DWORD dwFlags;
DWORD dwID;
wchar_t szName[40];
wchar_t szNameShort[8];
wchar_t* pszExtList;
wchar_t szDefExt[8];
COLORREF color;
UINT iIcon;
wchar_t* pszMimeType;
};
dwFlags
Type: DWORD
ID_FIF flags
dwID
Type: DWORD
Unique identifier for this format. Use the MAKE_FORMATID macro to generate format identifiers.
szName
Type: wchar_t[40]
Name of this format (e.g., "Windows BMP")
szNameShort
Type: wchar_t[8]
Short name of this format (e.g., "BMP")
pszExtList
Type: wchar_t*
List of filename extensions for this format (e.g., "BMP\0DIB\0RLE\0")
szDefExt
Type: wchar_t[8]
Default extension for this format (e.g., "BMP")
color
Type: COLORREF
Background color to use when highlighting
iIcon
Type: UINT
Index of icon to display (ordinal icon index in APL module resources)
pszMimeType
Type: wchar_t*
MIME type name
The plug-in owns the memory pointed to by pszExtList and must not free it until the plug-in library is unloaded (used in the ID_PlugInInfo structure).
Header: ID_PlugIn.h