[patch] w32api: user32, shell32

Hosaka Yuji <[email protected]> Sat, 04 Sep 2004 05:16:22 +0900
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
--=-=-=

Hi
This patch add some w32api header prototypes and exports for
USER32.DLL and SHELL32.DLL.

2004-09-04  Hosaka Yuji  <[email protected]>

	* include/winuser.h (MonitorFromPoint, MonitorFromRect,
	MonitorFromWindow): Add prototypes.
	* lib/user32.def (MonitorFromPoint, MonitorFromRect,
	MonitorFromWindowMonitorFromWindow): Add stubs.
	* include/shellapi.h (DuplicateIcon): Add prototype.

-- 
hosaka

--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=w32api.patch

Index: include/winuser.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winuser.h,v
retrieving revision 1.90
diff -u -3 -p -r1.90 winuser.h
--- include/winuser.h	23 Apr 2004 18:24:03 -0000	1.90
+++ include/winuser.h	3 Sep 2004 19:29:20 -0000
@@ -3640,6 +3640,11 @@ int WINAPI MessageBoxIndirectA(CONST MSG
 int WINAPI MessageBoxIndirectW(CONST MSGBOXPARAMSW*);
 BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT,LPCSTR);
 BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT,LPCWSTR);
+#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
+HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
+HMONITOR WINAPI MonitorFromRect(LPCRECT,DWORD);
+HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
+#endif
 void WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR);
 BOOL WINAPI MoveWindow(HWND,int,int,int,int,BOOL);
 DWORD WINAPI MsgWaitForMultipleObjects(DWORD,CONST HANDLE*,BOOL,DWORD,DWORD);
Index: lib/user32.def
===================================================================
RCS file: /cvs/src/src/winsup/w32api/lib/user32.def,v
retrieving revision 1.23
diff -u -3 -p -r1.23 user32.def
--- lib/user32.def	28 Mar 2004 11:22:10 -0000	1.23
+++ lib/user32.def	3 Sep 2004 19:29:20 -0000
@@ -439,6 +439,9 @@ MessageBoxIndirectW@4
 MessageBoxW@16
 ModifyMenuA@20
 ModifyMenuW@20
+MonitorFromPoint@8
+MonitorFromRect@8
+MonitorFromWindow@8
 MoveWindow@24
 MsgWaitForMultipleObjects@20
 MsgWaitForMultipleObjectsEx@20
Index: include/shellapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/shellapi.h,v
retrieving revision 1.11
diff -u -3 -p -r1.11 shellapi.h
--- include/shellapi.h	16 Mar 2004 09:13:08 -0000	1.11
+++ include/shellapi.h	3 Sep 2004 19:29:19 -0000
@@ -254,6 +254,7 @@ void WINAPI DragFinish(HDROP);
 UINT WINAPI DragQueryFileA(HDROP,UINT,LPSTR,UINT);
 UINT WINAPI DragQueryFileW(HDROP,UINT,LPWSTR,UINT);
 BOOL WINAPI DragQueryPoint(HDROP,LPPOINT);
+HICON WINAPI DuplicateIcon(HINSTANCE,HICON);
 HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPCSTR,PWORD);
 HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPCWSTR,PWORD);
 HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);

--=-=-=--



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click