1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
#pragma once
extern HINSTANCE hLotusDll;
typedef STATUS (CALLBACK *OSPATHNETCONSTRUCT)(
const char far *PortName,
const char far *ServerName,
const char far *FileName,
char far *retPathName);
extern OSPATHNETCONSTRUCT OSPathNetConstruct1;
typedef STATUS (CALLBACK LNPUBLIC *NOTESINITEXTENDED)(
int argc,
char far * far *argv);
extern NOTESINITEXTENDED NotesInitExtended1;
typedef STATUS (CALLBACK LNPUBLIC *NSFDBOPEN)(
const char far *PathName,
DBHANDLE far *rethDB);
extern NSFDBOPEN NSFDbOpen1;
typedef STATUS (CALLBACK LNPUBLIC *SECKFMGETUSERNAME)(
char far *retUserName);
extern SECKFMGETUSERNAME SECKFMGetUserName1;
typedef STATUS (CALLBACK LNPUBLIC *NSFDBGETUNREADNOTETABLE)(
DBHANDLE hDB,
char far *UserName,
WORD UserNameLength,
BOOL fCreateIfNotAvailable,
HANDLE far *rethUnreadList);
extern NSFDBGETUNREADNOTETABLE NSFDbGetUnreadNoteTable1;
typedef STATUS (CALLBACK LNPUBLIC *NSFDBUPDATEUNREAD)(
DBHANDLE hDataDB,
HANDLE hUnreadList);
extern NSFDBUPDATEUNREAD NSFDbUpdateUnread1;
typedef BOOL (CALLBACK LNPUBLIC *IDSCAN)(
HANDLE hTable,///DHANDLE
BOOL fFirst,
DWORD far *retID);
extern IDSCAN IDScan1;
typedef STATUS (CALLBACK LNPUBLIC *NSFNOTEOPEN)(
DBHANDLE db_handle,
NOTEID note_id,
WORD open_flags,
NOTEHANDLE far *note_handle);
extern NSFNOTEOPEN NSFNoteOpen1;
typedef STATUS (CALLBACK LNPUBLIC *NSFDBGETNOTEINFO)(
DBHANDLE hDb,
NOTEID NoteID,
OID far *retNoteOID,
TIMEDATE far *retModified,
WORD far *retNoteClass);
extern NSFDBGETNOTEINFO NSFDbGetNoteInfo1;
typedef WORD (CALLBACK LNPUBLIC *NSFITEMGETTEXT)(
NOTEHANDLE note_handle,
const char far *item_name,
char far *item_text,
WORD text_len);
extern NSFITEMGETTEXT NSFItemGetText1;
typedef BOOL (CALLBACK LNPUBLIC *NSFITEMGETTIME)(
NOTEHANDLE note_handle,
const char far *td_item_name,
TIMEDATE far *td_item_value);
extern NSFITEMGETTIME NSFItemGetTime1;
typedef STATUS (CALLBACK LNPUBLIC *CONVERTTIMEDATETOTEXT)(
const void far *IntlFormat,
const TFMT far *TextFormat,
const TIMEDATE far *InputTime,
char far *retTextBuffer,
WORD TextBufferLength,
WORD far *retTextLength);
extern CONVERTTIMEDATETOTEXT ConvertTIMEDATEToText1;
typedef WORD (CALLBACK LNPUBLIC *OSTRANSLATE)(
WORD TranslateMode,
const char far *In,
WORD InLength,
char far *Out,
WORD OutLength);
extern OSTRANSLATE OSTranslate1;
typedef BOOL (CALLBACK LNPUBLIC *MAILGETMESSAGEATTACHMENTINFO)(
HANDLE hMessage, ///DHANDLE
WORD Num,
BLOCKID far *bhItem,
char far *FileName,
DWORD far *FileSize,
WORD far *FileAttributes,
WORD far *FileHostType,
TIMEDATE *FileCreated,
TIMEDATE far *FileModified);
extern MAILGETMESSAGEATTACHMENTINFO MailGetMessageAttachmentInfo1;
typedef STATUS (CALLBACK LNPUBLIC *NSFNOTECLOSE)(
NOTEHANDLE note_handle);
extern NSFNOTECLOSE NSFNoteClose1;
typedef STATUS (CALLBACK LNPUBLIC *IDDESTROYTABLE)(
HANDLE hTable); ///DHANDLE
extern IDDESTROYTABLE IDDestroyTable1;
typedef STATUS (CALLBACK LNPUBLIC *NSFDBCLOSE)(
DBHANDLE hDB);
extern NSFDBCLOSE NSFDbClose1;
typedef WORD (CALLBACK LNPUBLIC *OSLOADSTRING)(
HMODULE hModule,
STATUS StringCode,
char far *retBuffer,
WORD BufferLength);
extern OSLOADSTRING OSLoadString1;
typedef void (CALLBACK LNPUBLIC *NOTESTERM)(void);
extern NOTESTERM NotesTerm1;
typedef BOOL (CALLBACK LNPUBLIC *OSGETENVIRONMENTSTRING)(
const char far *VariableName,
char far *retValueBuffer,
WORD BufferLength);
extern OSGETENVIRONMENTSTRING OSGetEnvironmentString1;
typedef void (CALLBACK LNPUBLIC *OSSETENVIRONMENTVARIABLE)(
const char far *VariableName,
const char far *Value);
extern OSSETENVIRONMENTVARIABLE OSSetEnvironmentVariable1;
typedef STATUS (CALLBACK LNPUBLIC *NSGETSERVERLIST)(
char far *pPortName,
HANDLE far *retServerTextList); ///DHANDLE
extern NSGETSERVERLIST NSGetServerList1;
typedef void far* (CALLBACK LNPUBLIC *OSLOCKOBJECT)(
HANDLE Handle); ///DHANDLE
extern OSLOCKOBJECT OSLockObject1;
typedef BOOL (CALLBACK LNPUBLIC *OSUNLOCKOBJECT)(
HANDLE Handle); ///DHANDLE
extern OSUNLOCKOBJECT OSUnlockObject1;
typedef STATUS (CALLBACK LNPUBLIC *OSMEMFREE)(
HANDLE Handle); ///DHANDLE
extern OSMEMFREE OSMemFree1;
typedef STATUS (CALLBACK LNPUBLIC *EMREGISTER)(
EID EmID,
DWORD Flags,
EMHANDLER Proc,
WORD RecursionID,
HEMREGISTRATION far *rethRegistration);
extern EMREGISTER EMRegister1;
typedef STATUS (CALLBACK LNPUBLIC *EMDEREGISTER)(
HANDLE Handle); ///HEMREGISTRATION
extern EMDEREGISTER EMDeregister1;
typedef STATUS (CALLBACK LNPUBLIC *NOTESINITTHREAD)(void);
extern NOTESINITTHREAD NotesInitThread1;
typedef void (CALLBACK LNPUBLIC *NOTESTERMTHREAD)(void);
extern NOTESTERMTHREAD NotesTermThread1;
BOOL HookLotusFunctions();
void GetLotusPath(wchar_t *sTemp, DWORD size);
|