ID_FormatInfo struct

Structure that specifies information about an image format support by the plug-in.

Syntax

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;
};

Members

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

Remarks

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).

Requirements

Header: ID_PlugIn.h

See also: