From e2b1222ee074e60e4381e005057f528eee338f33 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 5 Mar 2004 20:44:15 +0000 Subject: [PATCH] Stub for RegisterDeviceNotificationW. --- dlls/user/user32.spec | 2 +- windows/user.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/dlls/user/user32.spec b/dlls/user/user32.spec index a6bdc7513c2..d9381ad8fbd 100644 --- a/dlls/user/user32.spec +++ b/dlls/user/user32.spec @@ -676,7 +676,7 @@ @ stdcall GetProcessDefaultLayout(ptr) @ stdcall SetProcessDefaultLayout(long) @ stdcall RegisterDeviceNotificationA(long ptr long) -@ stub RegisterDeviceNotificationW +@ stdcall RegisterDeviceNotificationW(long ptr long) @ stdcall TrackMouseEvent(ptr) @ stub UnregisterDeviceNotification diff --git a/windows/user.c b/windows/user.c index e5764ec7551..85d5227fc50 100644 --- a/windows/user.c +++ b/windows/user.c @@ -710,9 +710,40 @@ void WINAPI RegisterSystemThread(DWORD flags, DWORD reserved) /*********************************************************************** * RegisterDeviceNotificationA (USER32.@) + * + * See RegisterDeviceNotificationW. */ HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE hnd, LPVOID notifyfilter, DWORD flags) { FIXME("(hwnd=%p, filter=%p,flags=0x%08lx), STUB!\n", hnd,notifyfilter,flags ); return 0; } + +/*********************************************************************** + * RegisterDeviceNotificationW (USER32.@) + * + * Registers a window with the system so that it will receive + * notifications about a device. + * + * PARAMS + * hRecepient [I] Window or service status handle that + * will receive notifications. + * pNotificationFilter [I] DEV_BROADCAST_HDR followed by some + * type-specific data. + * dwFlags [I] See notes + * + * RETURNS + * + * A handle to the device notification. + * + * NOTES + * + * The dwFlags parameter can be one of two values: + *| DEVICE_NOTIFY_WINDOW_HANDLE - hRecepient is a window handle + *| DEVICE_NOTIFY_SERVICE_HANDLE - hRecepient is a service status handle + */ +HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE hRecepient, LPVOID pNotificationFilter, DWORD dwFlags) +{ + FIXME("(hwnd=%p, filter=%p,flags=0x%08lx), STUB!\n", hRecepient,pNotificationFilter,dwFlags ); + return 0; +}