/****************************************************************************
*
* TxtOut.h
*
***************************************************************************/
/**************************************************************************
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*
* Copyright 1992 - 1998 Microsoft Corporation. All Rights Reserved.
*
**************************************************************************/
typedef struct {
WORD w;
} ICSTATE;
#define BUFFER_SIZE 256
typedef struct {
DWORDdwFlags;// flags from ICOPEN
ICSTATECurrentState;// current state of compressor.
intnDraw;// count of DRAW_BEGIN calls
HFONThfont;
ICDRAWBEGINdb;
RECTrc;
intiLen;
charachBuffer[BUFFER_SIZE];
} INSTINFO, *PINSTINFO;
BOOLNEAR PASCAL Load(void);
voidNEAR PASCAL Free(void);
INSTINFO*NEAR PASCAL Open(ICOPEN FAR *icinfo);
LRESULTNEAR PASCAL Close(INSTINFO * pinst);
LRESULTNEAR PASCAL GetState(INSTINFO * pinst, LPVOID pv, DWORD dwSize);
LRESULTNEAR PASCAL SetState(INSTINFO * pinst, LPVOID pv, DWORD dwSize);
LRESULTNEAR PASCAL GetInfo(INSTINFO * pinst, ICINFO FAR *icinfo, DWORD dwSize);
BOOLNEAR PASCAL QueryAbout(INSTINFO * pinst);
LRESULTNEAR PASCAL About(INSTINFO * pinst, HWND hwnd);
BOOLNEAR PASCAL QueryConfigure(INSTINFO * pinst);
LRESULTNEAR PASCAL Configure(INSTINFO * pinst, HWND hwnd);
LRESULTNEAR PASCAL DrawQuery(INSTINFO * pinst, LPVOID FAR * lpFormat);
LRESULTNEAR PASCAL DrawBegin(INSTINFO * pinst,ICDRAWBEGIN FAR *icinfo, DWORD dwSize);
LRESULTNEAR PASCAL Draw(INSTINFO * pinst,ICDRAW FAR *icinfo, DWORD dwSize);
LRESULTNEAR PASCAL DrawEnd(INSTINFO * pinst);
BOOL CALLBACK ConfigureDlgProc(
HWND hdlg,
UINT msg,
WPARAM wParam,
LPARAM lParam);
#ifdef DEBUG
extern void FAR CDECL dprintf(LPSTR, ...);
extern void FAR CDECL dprintf2(LPSTR, ...);
#define DPF dprintf
#define DPF2 dprintf2
#else
#define DPF / ## /// Pasting 2 slashes together comments out
#define DPF2 / ## /// the rest of the line.
#endif
// string IDs
#define IDS_DESCRIPTION112// 0x70, so WIN16 rc.exe can put 16
#define IDS_NAME113// strings in a segment