The current declaration for MsgWaitForMultipleObjects is the same as
on standard windows, but on Windows CE it's a define wrapper for
MsgWaitForMultiplesObjectsEx [1].

This patch fixes the winuser.h header:

Index: winuser.h
===================================================================
--- winuser.h   (revision 868)
+++ winuser.h   (working copy)
@@ -3834,8 +3834,13 @@
  #endif
  WINUSERAPI void WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
  WINUSERAPI BOOL WINAPI MoveWindow(HWND,int,int,int,int,BOOL);
+WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,CONST
HANDLE*,DWORD,DWORD,DWORD);
+#ifdef _WIN32_WCE
+#define MsgWaitForMultipleObjects(c,h,_,ms,m) \
+                       MsgWaitForMultipleObjectsEx(c,h,ms,m,0)
+#else
  WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjects(DWORD,CONST
HANDLE*,BOOL,DWORD,DWORD);
-WINUSERAPI DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,CONST
HANDLE*,DWORD,DWORD,DWORD);
+#endif
  #if (WINVER >= 0x0500)
  WINUSERAPI void WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG);
  #endif


I suppose it's also needed to fix the import libs, but don't know
where to do that (and it's not needed for programs to work).

Regards,
~Nuno Lucas


[1] http://msdn2.microsoft.com/en-us/library/ms961241.aspx

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to