diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index b59a953d5..87501cfa2 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,11 @@ +2003-09-26 Dimitri Papadopoulos + + * 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 * include/winuser.h [WINVER >= 0x0500] (SetWinEventHook, WINEVENTPROC, 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