source: trunk/src/user32/oldnls32.cpp

Last change on this file was 6650, checked in by bird, 24 years ago

Added $Id:$ keyword.

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