Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <dimitri_at@users.sf.net>2003-09-26 14:20:46 +0400
committerDimitri Papadopoulos <dimitri_at@users.sf.net>2003-09-26 14:20:46 +0400
commit2bbffa5b8508bd857fd855baf4f863aa50841740 (patch)
tree6f56e2bb8e2dcd25b7a7c73c91ede4afee5500e9 /winsup/w32api
parentd7a6ce1ab5e712096ef71d991e913b56199e663c (diff)
* include/winuser.h [WINVER >= 0x0500] (RegisterDeviceNotification[AW],
DEVICE_NOTIFY_WINDOW_HANDLE, DEVICE_NOTIFY_SERVICE_HANDLE, DEVICE_NOTIFY_ALL_INTERFACE_CLASSES): Add function and constants. * lib/user32.def (RegisterDeviceNotification[AW]): Add function.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog8
-rw-r--r--winsup/w32api/include/winuser.h13
-rw-r--r--winsup/w32api/lib/user32.def2
3 files changed, 23 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index b59a953d5..87501cfa2 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,5 +1,13 @@
2003-09-26 Dimitri Papadopoulos <papadopo@users.sourceforge.net>
+ * include/winuser.h [WINVER >= 0x0500] (RegisterDeviceNotification[AW],
+ DEVICE_NOTIFY_WINDOW_HANDLE, DEVICE_NOTIFY_SERVICE_HANDLE,
+ DEVICE_NOTIFY_ALL_INTERFACE_CLASSES): Add function and constants.
+
+ * lib/user32.def (RegisterDeviceNotification[AW]): Add function.
+
+2003-09-26 Dimitri Papadopoulos <papadopo@users.sourceforge.net>
+
* include/winuser.h [WINVER >= 0x0500] (SetWinEventHook, WINEVENTPROC,
WINEVENT_OUTOFCONTEXT, WINEVENT_SKIPOWNTHREAD, WINEVENT_SKIPOWNPROCESS,
WINEVENT_INCONTEXT): Add function, typedef, and constants.
diff --git a/winsup/w32api/include/winuser.h b/winsup/w32api/include/winuser.h
index ce7282d22..a3cb5052b 100644
--- a/winsup/w32api/include/winuser.h
+++ b/winsup/w32api/include/winuser.h
@@ -2117,6 +2117,13 @@ extern "C" {
#define GMMP_USE_DISPLAY_POINTS 1
#define GMMP_USE_HIGH_RESOLUTION_POINTS 2
#endif
+#if (WINVER >= 0x0500)
+#define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
+#define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001
+#if(_WIN32_WINNT >= 0x0501)
+#define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004
+#endif
+#endif /* (WINVER >= 0x0500) */
#ifndef RC_INVOKED
typedef BOOL(CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
@@ -3395,6 +3402,10 @@ ATOM WINAPI RegisterClassExA(CONST WNDCLASSEXA*);
ATOM WINAPI RegisterClassExW(CONST WNDCLASSEXW*);
UINT WINAPI RegisterClipboardFormatA(LPCSTR);
UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
+#if (WINVER >= 0x0500)
+HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD);
+HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD);
+#endif
BOOL WINAPI RegisterHotKey(HWND,int,UINT,UINT);
UINT WINAPI RegisterWindowMessageA(LPCSTR);
UINT WINAPI RegisterWindowMessageW(LPCWSTR);
@@ -3683,6 +3694,7 @@ typedef MONITORINFOEXW MONITORINFOEX, *LPMONITORINFOEX;
#define RegisterClass RegisterClassW
#define RegisterClassEx RegisterClassExW
#define RegisterClipboardFormat RegisterClipboardFormatW
+#define RegisterDeviceNotification RegisterDeviceNotificationW
#define RegisterWindowMessage RegisterWindowMessageW
#define RemoveProp RemovePropW
#define SendDlgItemMessage SendDlgItemMessageW
@@ -3844,6 +3856,7 @@ typedef MONITORINFOEXA MONITORINFOEX, *LPMONITORINFOEX;
#define RegisterClass RegisterClassA
#define RegisterClassEx RegisterClassExA
#define RegisterClipboardFormat RegisterClipboardFormatA
+#define RegisterDeviceNotification RegisterDeviceNotificationA
#define RegisterWindowMessage RegisterWindowMessageA
#define RemoveProp RemovePropA
#define SendDlgItemMessage SendDlgItemMessageA
diff --git a/winsup/w32api/lib/user32.def b/winsup/w32api/lib/user32.def
index 2a88ebeec..38633f45a 100644
--- a/winsup/w32api/lib/user32.def
+++ b/winsup/w32api/lib/user32.def
@@ -464,6 +464,8 @@ RegisterClassExW@4
RegisterClassW@4
RegisterClipboardFormatA@4
RegisterClipboardFormatW@4
+RegisterDeviceNotificationA@12
+RegisterDeviceNotificationW@12
RegisterHotKey@16
RegisterWindowMessageA@4
RegisterWindowMessageW@4