source: trunk/src/user32/oldnls32.cpp@ 5496

Last change on this file since 5496 was 5496, checked in by sandervl, 24 years ago

Sofiya: DBCS fixes

File size: 3.8 KB
Line 
1/*
2 winnls32.cpp
3
4*/
5
6#include <odin.h>
7#include <os2win.h>
8#include <odinwrap.h>
9#include "oldnls32.h"
10
11
12/*
13 BOOL IMPGetIME(hwnd, lpimepro)
14
15 Get Current IME Information
16 (HWND, InstallDate, Version, Description, FileName, Options on start...)
17
18 to invoke:
19 hnwd ... NULL
20 result:
21 not 0 ... success (infomation will be stored to lpimepro)
22 0 ... failure
23
24 see also:
25 ImmGetDefaultIMEWnd
26 ImmGetDescription
27 ImmGetIMEFileName
28 ImmGetProperty
29*/
30
31BOOL WINAPI IMPGetIMEA(HWND hwnd, LPIMEPROA lpip)
32{
33#ifdef DEBUG
34 dprintf(("USER32: IMPGetIMEA not implemented\n"));
35#endif
36 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
37 return FALSE;
38}
39
40BOOL WINAPI IMPGetIMEW(HWND hwnd, LPIMEPROW lpip)
41{
42#ifdef DEBUG
43 dprintf(("USER32: IMPGetIMEW not implemented\n"));
44#endif
45 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
46 return FALSE;
47}
48
49
50/*
51 BOOL IMPQueryIME(lpimepro)
52
53 Get(Enum) IMEs Information
54 (HWND, InstallDate, Version, Description, FileName, Options on start...)
55
56 to invoke:
57 first : lpimepro->szName[0] = 0
58 next to last : (must not modify any contents in lpimepro)
59
60 result:
61 not 0 ... success
62 lpimepro->hWnd ... HANDLE to the IME window (if loaded)
63 or NULL(if not)
64 0 ... failure, or end of list
65
66 see also:
67 ImmGetDefaultIMEWnd
68 ImmGetDescription
69 ImmGetIMEFileName
70 ImmGetProperty
71*/
72
73BOOL WINAPI IMPQueryIMEA(LPIMEPROA lpip)
74{
75#ifdef DEBUG
76 dprintf(("USER32: IMPQueryIMEA not implemented\n"));
77#endif
78 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
79 return FALSE;
80}
81
82BOOL WINAPI IMPQueryIMEW(LPIMEPROW lpip)
83{
84#ifdef DEBUG
85 dprintf(("USER32: IMPQueryIMEW not implemented\n"));
86#endif
87 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
88 return FALSE;
89}
90
91
92/*
93 BOOL IMPSetIME(hwnd, lpimepro)
94
95 Switch active IME
96
97 to invoke:
98 hwnd = NULL
99 lpimepro = IME to switch
100 result:
101 not 0 ... success
102 0 ... failure
103
104 see also:
105 ImmAssociateContext
106*/
107
108BOOL WINAPI IMPSetIMEA(HWND hwnd, LPIMEPROA lpip)
109{
110#ifdef DEBUG
111 dprintf(("USER32: IMPSetIMEA not implemented\n"));
112#endif
113 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
114 return FALSE;
115}
116
117BOOL WINAPI IMPSetIMEW(HWND hwnd, LPIMEPROW lpip)
118{
119#ifdef DEBUG
120 dprintf(("USER32: IMPSetIMEW not implemented\n"));
121#endif
122 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
123 return FALSE;
124}
125
126
127/*
128 UINT WINNLSGetIMEHotkey(hwnd)
129
130 Query Virtual Key code to open the IME
131
132 to invoke:
133 hnwd ... HANDLE to the IME window
134 result:
135 Virtual Key code, or NULL
136
137 see also:
138 ImmSimulateHotKey
139*/
140
141UINT WINAPI WINNLSGetIMEHotkey(HWND hwnd)
142{
143#ifdef DEBUG
144 dprintf(("USER32: WINNLSGetIMEHotKey not implemented\n"));
145#endif
146 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
147 return (UINT)NULL;
148}
149
150
151/*
152 BOOL WINNLSEnableIME(hwnd, bool)
153
154 make IME open/close
155
156 to invoke:
157 hwnd ... NULL
158 bool ... TRUE (open) or FALSE (close)
159 result:
160 previous state
161
162 see also:
163 ImmGetOpenStatus
164 ImmSetOpenStatus
165 ImmSimulateHotKey
166*/
167
168BOOL WINAPI WINNLSEnableIME(HWND hwnd, BOOL bOpen)
169{
170#ifdef DEBUG
171 dprintf(("USER32: WINNLSEnableIME not implemented\n"));
172 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
173#endif
174 return FALSE;
175}
176
177
178/*
179 BOOL WINNLSGetEnableStatus(hwnd)
180
181 Query IME open/close
182
183 to invoke:
184 hwnd ... NULL
185 result:
186 not 0 ... open
187 0 ... close
188
189 see also:
190 ImmGetOpenStatus
191*/
192
193BOOL WINAPI WINNLSGetEnableStatus(HWND hwnd)
194{
195#ifdef DEBUG
196 dprintf(("USER32: WINNLSGetEnableStatus not implemented\n"));
197 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
198#endif
199 return FALSE;
200}
201
202
203/*
204 LRESULT WINAPI SendIMEMessageEx(hwnd, lparam)
205*/
206
207
208LRESULT WINAPI SendIMEMessageExA(HWND hwnd, LPARAM lparam)
209{
210#ifdef DEBUG
211 dprintf(("USER32: SendIMEMessageExA not implemented\n"));
212 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
213#endif
214 return (LRESULT)0;
215}
216
217LRESULT WINAPI SendIMEMessageExW(HWND hwnd, LPARAM lparam)
218{
219#ifdef DEBUG
220 dprintf(("USER32: SendIMEMessageExW not implemented\n"));
221 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
222#endif
223 return (LRESULT)0;
224}
225
Note: See TracBrowser for help on using the repository browser.