1 | Unit HelpManagerUnit;
|
---|
2 |
|
---|
3 | // NewView - a new OS/2 Help Viewer
|
---|
4 | // Copyright 2003 Aaron Lawrence (aaronl at consultant dot com)
|
---|
5 | // This software is released under the Gnu Public License - see readme.txt
|
---|
6 |
|
---|
7 | // Definitions affecting the interface with the new helpmgr.dll
|
---|
8 |
|
---|
9 | Interface
|
---|
10 |
|
---|
11 | uses
|
---|
12 | PmWin;
|
---|
13 |
|
---|
14 | const
|
---|
15 | SharedMemSize = 16000; // space for messages: 16kB
|
---|
16 | SharedMemReserveSize = 256;
|
---|
17 | SharedMemName = 'NEWVIEW';
|
---|
18 | SHARED_STRUCT_TITLE_SIZE = 32;
|
---|
19 | SHARED_STRUCT_VERSION_SIZE = 32;
|
---|
20 | type
|
---|
21 | TNewHelpMgrSharedStruct = record
|
---|
22 | Title: array[ 0..SHARED_STRUCT_TITLE_SIZE - 1 ] of char;
|
---|
23 | Version: array[ 0..SHARED_STRUCT_VERSION_SIZE - 1 ] of char;
|
---|
24 | end;
|
---|
25 | TPNewHelpMgrSharedStruct = ^TNewHelpMgrSharedStruct;
|
---|
26 |
|
---|
27 | var
|
---|
28 | // extract from shared memory once connected
|
---|
29 | HelpManagerVersion: string;
|
---|
30 |
|
---|
31 | const
|
---|
32 | // External messages between helpmgr.dll and NewView
|
---|
33 | WM_NEWHELPMGR = WM_USER + 300;
|
---|
34 |
|
---|
35 | // sent by newview when startup is complete
|
---|
36 | NHM_VIEWER_READY = WM_NEWHELPMGR + 0;
|
---|
37 | // Param1: viewer window handle
|
---|
38 |
|
---|
39 | NHM_HELP_CONTENTS = WM_NEWHELPMGR + 1;
|
---|
40 |
|
---|
41 | NHM_HELP_INDEX = WM_NEWHELPMGR + 2;
|
---|
42 |
|
---|
43 | NHM_TOPIC_BY_RESOURCE_ID = WM_NEWHELPMGR + 3;
|
---|
44 | // Param1: resource id
|
---|
45 |
|
---|
46 | NHM_TEST = WM_NEWHELPMGR + 4;
|
---|
47 | // Param1: ptr to text
|
---|
48 |
|
---|
49 | NHM_FORGET_VIEWER = WM_NEWHELPMGR + 5;
|
---|
50 |
|
---|
51 | NHM_TOPIC_BY_PANEL_NAME = WM_NEWHELPMGR + 6;
|
---|
52 | // Param1: pointer to name in shared memory
|
---|
53 |
|
---|
54 | NHM_SEARCH = WM_NEWHELPMGR + 7;
|
---|
55 | // Param1: pointer to text in shared memory
|
---|
56 |
|
---|
57 | NHM_GLOBAL_SEARCH = WM_NEWHELPMGR + 8;
|
---|
58 | // Param1: pointer to text in shared memory
|
---|
59 |
|
---|
60 | NHM_SHOW_USAGE = WM_NEWHELPMGR + 9;
|
---|
61 |
|
---|
62 | NHM_SET_FILES = WM_NEWHELPMGR + 10;
|
---|
63 | // Param1: pointer to filename(s) in shared memory
|
---|
64 |
|
---|
65 | NHM_SET_TITLE = WM_NEWHELPMGR + 11;
|
---|
66 | // Param1: pointer to title in shared memory
|
---|
67 |
|
---|
68 | Implementation
|
---|
69 |
|
---|
70 | Initialization
|
---|
71 | End.
|
---|