source: trunk/src/user32/oslibmsg.cpp@ 6614

Last change on this file since 6614 was 6614, checked in by phaller, 24 years ago

better behaviour if PostMessage fails due to low memory

File size: 19.1 KB
Line 
1/* $Id: oslibmsg.cpp,v 1.42 2001-08-31 19:55:41 phaller Exp $ */
2/*
3 * Window message translation functions for OS/2
4 *
5 *
6 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 * TODO: Some messages that are sent to the frame window are directly passed on to the client
12 * -> Get/PeekMessage never gets them as we return a dummy message for non-client windows
13 * (i.e. menu WM_COMMAND messages)
14 *
15 * TODO: Filter translation isn't correct! (for posted messages or messages that don't have
16 * a PM version.
17 *
18 */
19#define INCL_WIN
20#define INCL_PM
21#define INCL_DOSPROCESS
22#include <os2wrap.h>
23#include <string.h>
24#include <misc.h>
25#include "oslibmsg.h"
26#include <winconst.h>
27#include <win32api.h>
28#include <winuser32.h>
29#include "oslibutil.h"
30#include "timer.h"
31#include <thread.h>
32#include <wprocess.h>
33#include "pmwindow.h"
34#include "oslibwin.h"
35#include <win\hook.h>
36
37#define DBG_LOCALLOG DBG_oslibmsg
38#include "dbglocal.h"
39
40
41// PH 2001-08-24 It seems a failure to post a message
42// kills Opera here and there.
43#define VERIFY_SHARED_HEAP 1
44
45
46typedef BOOL (EXPENTRY FNTRANS)(MSG *, QMSG *);
47typedef FNTRANS *PFNTRANS;
48
49typedef struct
50{
51 ULONG msgOS2;
52 ULONG msgWin32;
53// PFNTRANS toOS2;
54// PFNTRANS toWIN32;
55} MSGTRANSTAB, *PMSGTRANSTAB;
56
57//NOTE: Must be ordered by win32 message id!!
58MSGTRANSTAB MsgTransTab[] = {
59 WM_NULL, WINWM_NULL,
60 WM_CREATE, WINWM_CREATE,
61 WM_DESTROY, WINWM_DESTROY,
62 WM_MOVE, WINWM_MOVE, //TODO: Sent directly
63 WM_SIZE, WINWM_SIZE, //TODO: Sent directly
64 WM_ACTIVATE, WINWM_ACTIVATE,
65 WM_SETFOCUS, WINWM_SETFOCUS,
66 WM_SETFOCUS, WINWM_KILLFOCUS,
67 WM_ENABLE, WINWM_ENABLE,
68 WM_PAINT, WINWM_PAINT,
69 WM_CLOSE, WINWM_CLOSE,
70 WM_QUIT, WINWM_QUIT,
71 WM_SHOW, WINWM_SHOWWINDOW,
72
73 WM_HITTEST, WINWM_NCHITTEST,
74
75 //todo: not always right if mouse msg turns out to be for the client window
76 WM_MOUSEMOVE, WINWM_NCMOUSEMOVE,
77 WM_BUTTON1DOWN, WINWM_NCLBUTTONDOWN,
78 WM_BUTTON1UP, WINWM_NCLBUTTONUP,
79 WM_BUTTON1DBLCLK, WINWM_NCLBUTTONDBLCLK,
80 WM_BUTTON2DOWN, WINWM_NCRBUTTONDOWN,
81 WM_BUTTON2UP, WINWM_NCRBUTTONUP,
82 WM_BUTTON2DBLCLK, WINWM_NCRBUTTONDBLCLK,
83 WM_BUTTON3DOWN, WINWM_NCMBUTTONDOWN,
84 WM_BUTTON3UP, WINWM_NCMBUTTONUP,
85 WM_BUTTON3DBLCLK, WINWM_NCMBUTTONDBLCLK,
86
87 //TODO: Needs better translation!
88 WM_CHAR, WINWM_KEYDOWN,
89 WM_CHAR, WINWM_KEYUP,
90 WM_CHAR, WINWM_CHAR,
91 WM_CHAR, WINWM_DEADCHAR,
92 WM_CHAR, WINWM_SYSKEYDOWN,
93 WM_CHAR, WINWM_SYSKEYUP,
94 WM_CHAR, WINWM_SYSCHAR,
95 WM_CHAR, WINWM_SYSDEADCHAR,
96 WM_CHAR, WINWM_KEYLAST,
97
98 //
99 WM_TIMER, WINWM_TIMER,
100
101 //
102 //todo: not always right if mouse msg turns out to be for the nonclient window
103 WM_MOUSEMOVE, WINWM_MOUSEMOVE,
104 WM_BUTTON1DOWN, WINWM_LBUTTONDOWN,
105 WM_BUTTON1UP, WINWM_LBUTTONUP,
106 WM_BUTTON1DBLCLK, WINWM_LBUTTONDBLCLK,
107 WM_BUTTON2DOWN, WINWM_RBUTTONDOWN,
108 WM_BUTTON2UP, WINWM_RBUTTONUP,
109 WM_BUTTON2DBLCLK, WINWM_RBUTTONDBLCLK,
110 WM_BUTTON3DOWN, WINWM_MBUTTONDOWN,
111 WM_BUTTON3UP, WINWM_MBUTTONUP,
112 WM_BUTTON3DBLCLK, WINWM_MBUTTONDBLCLK,
113
114 999999999, 999999999,
115};
116#define MAX_MSGTRANSTAB (sizeof(MsgTransTab)/sizeof(MsgTransTab[0]))
117
118//******************************************************************************
119//******************************************************************************
120void WinToOS2MsgTranslate(MSG *winMsg, QMSG *os2Msg, BOOL isUnicode)
121{
122// memcpy(os2Msg, winMsg, sizeof(MSG));
123// os2Msg->hwnd = Win32ToOS2Handle(winMsg->hwnd);
124// os2Msg->reserved = 0;
125}
126//******************************************************************************
127//TODO: NOT COMPLETE nor 100% CORRECT!!!
128//If both the minimum & maximum message are unknown, the result can be wrong (max > min)!
129//******************************************************************************
130ULONG TranslateWinMsg(ULONG msg, BOOL fMinFilter)
131{
132 if(msg == 0)
133 return 0;
134
135 if(msg >= WINWM_USER)
136 return msg + WIN32APP_POSTMSG;
137
138 for(int i=0;i<MAX_MSGTRANSTAB;i++)
139 {
140 if(fMinFilter && MsgTransTab[i].msgWin32 >= msg) {
141 return MsgTransTab[i].msgOS2;
142 }
143 else
144 if(!fMinFilter && MsgTransTab[i].msgWin32 >= msg) {
145 if(MsgTransTab[i].msgWin32 == msg)
146 return MsgTransTab[i].msgOS2;
147 else return MsgTransTab[i-1].msgOS2;
148 }
149 }
150
151 //not found, get everything
152 dprintf(("WARNING: TranslateWinMsg: message %x not found", msg));
153 return 0;
154}
155//******************************************************************************
156//******************************************************************************
157void OSLibWinPostQuitMessage(ULONG nExitCode)
158{
159 APIRET rc;
160
161 rc = WinPostQueueMsg(NULLHANDLE, WM_QUIT, MPFROMLONG(nExitCode), 0);
162 dprintf(("WinPostQueueMsg %d returned %d", nExitCode, rc));
163}
164//******************************************************************************
165//******************************************************************************
166LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode)
167{
168 TEB *teb;
169 QMSG os2msg;
170 LONG rc;
171
172 teb = GetThreadTEB();
173 if(teb == NULL) {
174 DebugInt3();
175 return FALSE;
176 }
177
178 //TODO: What to do if app changed msg? (translate)
179 // WinToOS2MsgTranslate(msg, &qmsg, isUnicode);
180
181 if(!memcmp(msg, &teb->o.odin.winmsg, sizeof(MSG)) || msg->hwnd == 0) {
182 memcpy(&os2msg, &teb->o.odin.os2msg, sizeof(QMSG));
183 teb->o.odin.os2msg.time = -1;
184 teb->o.odin.winmsg.time = -1;
185 if(msg->hwnd) {
186 teb->o.odin.nrOfMsgs = 1;
187 teb->o.odin.msgstate++; //odd -> next call to our PM window handler should dispatch the translated msg
188 memcpy(&teb->o.odin.msg, msg, sizeof(MSG));
189 }
190 if(os2msg.hwnd || os2msg.msg == WM_QUIT) {
191 memset(&teb->o.odin.os2msg, 0, sizeof(teb->o.odin.os2msg));
192 memset(&teb->o.odin.winmsg, 0, sizeof(teb->o.odin.winmsg));
193 return (LONG)WinDispatchMsg(teb->o.odin.hab, &os2msg);
194 }
195 //SvL: Don't dispatch messages sent by PostThreadMessage (correct??)
196 // Or WM_TIMER msgs with no window handle or timer proc
197 return 0;
198
199 }
200 else {//is this allowed?
201// dprintf(("WARNING: OSLibWinDispatchMsg: called with own message!"));
202 return SendMessageA(msg->hwnd, msg->message, msg->wParam, msg->lParam);
203 }
204}
205//******************************************************************************
206//******************************************************************************
207BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
208 BOOL isUnicode)
209{
210 BOOL rc, eaten;
211 TEB *teb;
212 QMSG os2msg;
213 HWND hwndOS2 = 0;
214 ULONG filtermin, filtermax;
215
216 if(hwnd) {
217 hwndOS2 = Win32ToOS2Handle(hwnd);
218 if(hwndOS2 == NULL) {
219 memset(pMsg, 0, sizeof(MSG));
220 dprintf(("GetMsg: window %x NOT FOUND!", hwnd));
221 SetLastError(ERROR_INVALID_WINDOW_HANDLE_W);
222 return TRUE;
223 }
224 }
225
226 teb = GetThreadTEB();
227 if(teb == NULL) {
228 DebugInt3();
229 return TRUE;
230 }
231
232 if(teb->o.odin.fTranslated && (!hwnd || hwnd == teb->o.odin.msgWCHAR.hwnd)) {
233 if(uMsgFilterMin) {
234 if(teb->o.odin.msgWCHAR.message < uMsgFilterMin)
235 goto continuegetmsg;
236 }
237 if(uMsgFilterMax) {
238 if(teb->o.odin.msgWCHAR.message > uMsgFilterMax)
239 goto continuegetmsg;
240 }
241 teb->o.odin.fTranslated = FALSE;
242 memcpy(pMsg, &teb->o.odin.msgWCHAR, sizeof(MSG));
243 teb->o.odin.os2msg.msg = 0;
244 teb->o.odin.os2msg.hwnd = 0;
245 return (pMsg->message != WINWM_QUIT);
246 }
247
248continuegetmsg:
249 if(hwnd) {
250 filtermin = TranslateWinMsg(uMsgFilterMin, TRUE);
251 filtermax = TranslateWinMsg(uMsgFilterMax, FALSE);
252 if(filtermin > filtermax) {
253 ULONG tmp = filtermin;
254 filtermin = filtermax;
255 filtermax = filtermin;
256 }
257 do {
258 WinWaitMsg(teb->o.odin.hab, filtermin, filtermax);
259 rc = OSLibWinPeekMsg(pMsg, hwnd, uMsgFilterMin, uMsgFilterMax, PM_REMOVE_W, isUnicode);
260 }
261 while(rc == FALSE);
262
263 return (pMsg->message != WINWM_QUIT);
264 }
265 else
266 {
267 filtermin = TranslateWinMsg(uMsgFilterMin, TRUE);
268 filtermax = TranslateWinMsg(uMsgFilterMax, FALSE);
269 if(filtermin > filtermax) {
270 ULONG tmp = filtermin;
271 filtermin = filtermax;
272 filtermax = filtermin;
273 }
274 do {
275 eaten = FALSE;
276 rc = WinGetMsg(teb->o.odin.hab, &os2msg, filtermin, filtermax, 0);
277 if (os2msg.msg == WM_TIMER)
278 eaten = TIMER_HandleTimer(&os2msg);
279 } while (eaten);
280 }
281 if(OS2ToWinMsgTranslate((PVOID)teb, &os2msg, pMsg, isUnicode, MSG_REMOVE) == FALSE) {
282 //dispatch untranslated message immediately
283 WinDispatchMsg(teb->o.odin.hab, &os2msg);
284 //and get the next one
285 return OSLibWinGetMsg(pMsg, hwnd, uMsgFilterMin, uMsgFilterMax, isUnicode);
286 }
287
288 memcpy(&teb->o.odin.os2msg, &os2msg, sizeof(QMSG));
289 memcpy(&teb->o.odin.winmsg, pMsg, sizeof(MSG));
290
291 if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN)
292 {
293 if(ProcessKbdHook(pMsg, TRUE))
294 goto continuegetmsg;
295 }
296 return rc;
297}
298//******************************************************************************
299//PeekMessage retrieves only messages associated with the window identified by the
300//hwnd parameter or any of its children as specified by the IsChild function, and within
301//the range of message values given by the uMsgFilterMin and uMsgFilterMax
302//parameters. If hwnd is NULL, PeekMessage retrieves messages for any window that
303//belongs to the current thread making the call. (PeekMessage does not retrieve
304//messages for windows that belong to other threads.) If hwnd is -1, PeekMessage only
305//returns messages with a hwnd value of NULL, as posted by the PostAppMessage
306//function. If uMsgFilterMin and uMsgFilterMax are both zero, PeekMessage returns all
307//available messages (no range filtering is performed).
308//TODO: Not working as specified right now!
309//******************************************************************************
310BOOL OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
311 DWORD fRemove, BOOL isUnicode)
312{
313 BOOL rc, eaten;
314 TEB *teb;
315 QMSG os2msg;
316 HWND hwndOS2 = 0;
317
318 if(hwnd && hwnd != -1) {
319 hwndOS2 = Win32ToOS2Handle(hwnd);
320 if(hwndOS2 == NULL) {
321 dprintf(("PeekMsg: window %x NOT FOUND!", hwnd));
322 SetLastError(ERROR_INVALID_WINDOW_HANDLE_W);
323 return FALSE;
324 }
325 }
326
327 teb = GetThreadTEB();
328 if(teb == NULL) {
329 DebugInt3();
330 return FALSE;
331 }
332
333 if(teb->o.odin.fTranslated && (!hwnd || hwnd == teb->o.odin.msgWCHAR.hwnd)) {
334 if(uMsgFilterMin) {
335 if(teb->o.odin.msgWCHAR.message < uMsgFilterMin)
336 goto continuepeekmsg;
337 }
338 if(uMsgFilterMax) {
339 if(teb->o.odin.msgWCHAR.message > uMsgFilterMax)
340 goto continuepeekmsg;
341 }
342
343 if(fRemove & PM_REMOVE_W) {
344 teb->o.odin.fTranslated = FALSE;
345 teb->o.odin.os2msg.msg = 0;
346 teb->o.odin.os2msg.hwnd = 0;
347 }
348 memcpy(pMsg, &teb->o.odin.msgWCHAR, sizeof(MSG));
349 return TRUE;
350 }
351
352continuepeekmsg:
353 do {
354 eaten = FALSE;
355 rc = WinPeekMsg(teb->o.odin.hab, &os2msg, hwndOS2, TranslateWinMsg(uMsgFilterMin, TRUE),
356 TranslateWinMsg(uMsgFilterMax, FALSE), (fRemove & PM_REMOVE_W) ? PM_REMOVE : PM_NOREMOVE);
357
358 if (rc && (fRemove & PM_REMOVE_W) && os2msg.msg == WM_TIMER) {
359 eaten = TIMER_HandleTimer(&os2msg);
360 }
361 }
362 while (eaten && rc);
363
364 if(rc == FALSE) {
365 return FALSE;
366 }
367
368 if(OS2ToWinMsgTranslate((PVOID)teb, &os2msg, pMsg, isUnicode, (fRemove & PM_REMOVE_W) ? MSG_REMOVE : MSG_NOREMOVE) == FALSE)
369 {
370 //unused PM message; dispatch immediately and grab next one
371 dprintf2(("OSLibWinPeekMsg: Untranslated message; dispatched immediately"));
372 if(!(fRemove & PM_REMOVE_W)) {
373 rc = WinPeekMsg(teb->o.odin.hab, &os2msg, hwndOS2, TranslateWinMsg(uMsgFilterMin, TRUE),
374 TranslateWinMsg(uMsgFilterMax, FALSE), PM_REMOVE);
375 }
376 WinDispatchMsg(teb->o.odin.hab, &os2msg);
377 return OSLibWinPeekMsg(pMsg, hwnd, uMsgFilterMin, uMsgFilterMax,
378 fRemove, isUnicode);
379 }
380 //TODO: This is not safe! There's no guarantee this message will be dispatched and it might overwrite a previous message
381 if(fRemove & PM_REMOVE_W) {
382 memcpy(&teb->o.odin.os2msg, &os2msg, sizeof(QMSG));
383 memcpy(&teb->o.odin.winmsg, pMsg, sizeof(MSG));
384 }
385
386 if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN)
387 {
388 if(ProcessKbdHook(pMsg, fRemove))
389 goto continuepeekmsg;
390 }
391
392 return rc;
393}
394//******************************************************************************
395//******************************************************************************
396ULONG OSLibWinQueryMsgTime()
397{
398 return WinQueryMsgTime(GetThreadHAB());
399}
400//******************************************************************************
401//******************************************************************************
402BOOL OSLibWinWaitMessage()
403{
404 return WinWaitMsg(GetThreadHAB(), 0, 0);
405}
406//******************************************************************************
407//TODO: QS_HOTKEY
408//******************************************************************************
409ULONG OSLibWinQueryQueueStatus()
410{
411 ULONG statusOS2, statusWin32 = 0;
412
413 statusOS2 = WinQueryQueueStatus(HWND_DESKTOP);
414
415 if(statusOS2 & QS_KEY)
416 statusWin32 |= QS_KEY_W;
417 if(statusOS2 & QS_MOUSEBUTTON)
418 statusWin32 |= QS_MOUSEBUTTON_W;
419 if(statusOS2 & QS_MOUSEMOVE)
420 statusWin32 |= QS_MOUSEMOVE_W;
421 if(statusOS2 & QS_TIMER)
422 statusWin32 |= QS_TIMER_W;
423 if(statusOS2 & QS_PAINT)
424 statusWin32 |= QS_PAINT_W;
425 if(statusOS2 & QS_POSTMSG)
426 statusWin32 |= QS_POSTMESSAGE_W;
427 if(statusOS2 & QS_SENDMSG)
428 statusWin32 |= QS_SENDMESSAGE_W;
429
430 return statusWin32;
431}
432//******************************************************************************
433//******************************************************************************
434BOOL OSLibWinInSendMessage()
435{
436 return WinInSendMsg(GetThreadHAB());
437}
438//******************************************************************************
439//******************************************************************************
440DWORD OSLibWinGetMessagePos()
441{
442 APIRET rc;
443 POINTL ptl;
444
445 rc = WinQueryMsgPos(GetThreadHAB(), &ptl);
446 if(!rc) {
447 return 0;
448 }
449 //convert to windows coordinates
450 return MAKEULONG(ptl.x,mapScreenY(ptl.y));
451}
452//******************************************************************************
453//******************************************************************************
454LONG OSLibWinGetMessageTime()
455{
456 return (LONG)WinQueryMsgTime(GetThreadHAB());
457}
458//******************************************************************************
459//******************************************************************************
460BOOL OSLibWinReplyMessage(ULONG result)
461{
462 return (BOOL)WinReplyMsg( NULLHANDLE, NULLHANDLE, HMQ_CURRENT, (MRESULT)result);
463}
464//******************************************************************************
465//******************************************************************************
466ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode)
467{
468 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));
469
470#ifdef VERIFY_SHARED_HEAP
471 if (NULL == packet)
472 {
473 dprintf(("user32::oslibmsg::OSLibSendMessage - allocated packet structure is NULL, heapmin=%d\n",
474 _sheapmin() ));
475
476 // PH: we cannot provide a correct returncode :(
477 return 0;
478 }
479#endif
480
481 packet->wParam = wParam;
482 packet->lParam = lParam;
483
484 return (ULONG)WinSendMsg(hwnd, WIN32APP_POSTMSG+msg, (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (MPARAM)packet);
485}
486//******************************************************************************
487//******************************************************************************
488ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend)
489{
490 return WinBroadcastMsg(HWND_DESKTOP, WIN32APP_POSTMSG+msg, (MPARAM)wParam, (MPARAM)lParam,
491 (fSend) ? BMSG_SEND : BMSG_POST);
492}
493//******************************************************************************
494//******************************************************************************
495BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode)
496{
497 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));
498
499#ifdef VERIFY_SHARED_HEAP
500 if (NULL == packet)
501 {
502 dprintf(("user32::oslibmsg::OSLibPostMessage - allocated packet structure is NULL, heapmin=%d\n",
503 _sheapmin() ));
504
505 // PH: we can provide a correct returncode
506 return FALSE;
507 }
508#endif
509 packet->wParam = wParam;
510 packet->lParam = lParam;
511 return WinPostMsg(hwnd, WIN32APP_POSTMSG+msg, (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (MPARAM)packet);
512}
513//******************************************************************************
514//Direct posting of messages that must remain invisible to the win32 app
515//******************************************************************************
516BOOL OSLibPostMessageDirect(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam)
517{
518 return WinPostMsg(hwnd, msg, (MPARAM)wParam, (MPARAM)lParam);
519}
520//******************************************************************************
521BOOL _System _O32_PostThreadMessage( DWORD, UINT, WPARAM, LPARAM );
522
523inline BOOL O32_PostThreadMessage(DWORD a, UINT b, WPARAM c, LPARAM d)
524{
525 BOOL yyrc;
526 USHORT sel = RestoreOS2FS();
527
528 yyrc = _O32_PostThreadMessage(a, b, c, d);
529 SetFS(sel);
530
531 return yyrc;
532}
533//******************************************************************************
534BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode)
535{
536 TEB *teb = GetTEBFromThreadId(threadid);
537 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));
538 BOOL ret;
539
540#ifdef VERIFY_SHARED_HEAP
541 if (NULL == packet)
542 {
543 dprintf(("user32::oslibmsg::OSLibPostMessage - allocated packet structure is NULL, heapmin=%d\n",
544 _sheapmin() ));
545
546 // PH: we can provide a correct returncode
547 return FALSE;
548 }
549#endif
550
551
552 if(teb == NULL) {
553 dprintf(("OSLibPostThreadMessage: thread %x not found!", threadid));
554 return FALSE;
555 }
556 dprintf(("PostThreadMessageA %x %x %x %x -> hmq %x", threadid, msg, wParam, lParam, teb->o.odin.hmq));
557 packet->wParam = wParam;
558 packet->lParam = lParam;
559
560 ret = WinPostQueueMsg((HMQ)teb->o.odin.hmq, WIN32APP_POSTMSG+msg,
561 (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA),
562 (MPARAM)packet);
563
564 if(ret == FALSE)
565 {
566 SetLastError(ERROR_INVALID_PARAMETER_W);
567 return FALSE;
568 }
569 SetLastError(ERROR_SUCCESS_W);
570 return TRUE;
571}
572//******************************************************************************
573//******************************************************************************
574
Note: See TracBrowser for help on using the repository browser.