Implemented ILGetDisplayName.
[wine/multimedia.git] / programs / winhelp / hlpfile.h
blobfb525dba75d628b11c7348baea295d9346c27915
1 /*
2 * Help Viewer
4 * Copyright 1996 Ulrich Schmid
5 */
7 struct tagHelpFile;
9 typedef struct
11 LPCSTR lpszPath;
12 LONG lHash;
13 BOOL bPopup;
15 HGLOBAL hSelf;
16 } HLPFILE_LINK;
18 typedef struct tagHlpFileParagraph
20 LPSTR lpszText;
22 UINT bDebug;
23 UINT wFont;
24 UINT wIndent;
25 UINT wHSpace;
26 UINT wVSpace;
28 HLPFILE_LINK *link;
30 struct tagHlpFileParagraph *next;
32 HGLOBAL hSelf;
33 } HLPFILE_PARAGRAPH;
35 typedef struct tagHlpFilePage
37 LPSTR lpszTitle;
38 HLPFILE_PARAGRAPH *first_paragraph;
40 UINT wNumber;
42 struct tagHlpFilePage *next;
43 struct tagHlpFileFile *file;
45 HGLOBAL hSelf;
46 } HLPFILE_PAGE;
48 typedef struct
50 LONG lHash;
51 UINT wPage;
52 } HLPFILE_CONTEXT;
54 typedef struct tagHlpFileMacro
56 LPCSTR lpszMacro;
58 HGLOBAL hSelf;
59 struct tagHlpFileMacro *next;
60 } HLPFILE_MACRO;
62 typedef struct tagHlpFileFile
64 LPSTR lpszPath;
65 LPSTR lpszTitle;
66 HLPFILE_PAGE *first_page;
67 HLPFILE_MACRO *first_macro;
68 UINT wContextLen;
69 HLPFILE_CONTEXT *Context;
71 struct tagHlpFileFile *prev;
72 struct tagHlpFileFile *next;
74 UINT wRefCount;
76 HGLOBAL hTitle;
77 HGLOBAL hContext;
78 HGLOBAL hSelf;
79 } HLPFILE;
81 HLPFILE *HLPFILE_ReadHlpFile(LPCSTR lpszPath);
82 HLPFILE_PAGE *HLPFILE_Contents(LPCSTR lpszPath);
83 HLPFILE_PAGE *HLPFILE_PageByHash(LPCSTR lpszPath, LONG wNum);
84 LONG HLPFILE_Hash(LPCSTR lpszContext);
85 VOID HLPFILE_FreeHlpFilePage(HLPFILE_PAGE*);
86 VOID HLPFILE_FreeHlpFile(HLPFILE*);
88 /* Local Variables: */
89 /* c-file-style: "GNU" */
90 /* End: */