Stub for RegisterDeviceNotificationW.

This commit is contained in:
Robert Shearman 2004-03-05 20:44:15 +00:00 committed by Alexandre Julliard
parent ed593fdf2f
commit e2b1222ee0
2 changed files with 32 additions and 1 deletions

View File

@ -676,7 +676,7 @@
@ stdcall GetProcessDefaultLayout(ptr) @ stdcall GetProcessDefaultLayout(ptr)
@ stdcall SetProcessDefaultLayout(long) @ stdcall SetProcessDefaultLayout(long)
@ stdcall RegisterDeviceNotificationA(long ptr long) @ stdcall RegisterDeviceNotificationA(long ptr long)
@ stub RegisterDeviceNotificationW @ stdcall RegisterDeviceNotificationW(long ptr long)
@ stdcall TrackMouseEvent(ptr) @ stdcall TrackMouseEvent(ptr)
@ stub UnregisterDeviceNotification @ stub UnregisterDeviceNotification

View File

@ -710,9 +710,40 @@ void WINAPI RegisterSystemThread(DWORD flags, DWORD reserved)
/*********************************************************************** /***********************************************************************
* RegisterDeviceNotificationA (USER32.@) * RegisterDeviceNotificationA (USER32.@)
*
* See RegisterDeviceNotificationW.
*/ */
HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE hnd, LPVOID notifyfilter, DWORD flags) HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE hnd, LPVOID notifyfilter, DWORD flags)
{ {
FIXME("(hwnd=%p, filter=%p,flags=0x%08lx), STUB!\n", hnd,notifyfilter,flags ); FIXME("(hwnd=%p, filter=%p,flags=0x%08lx), STUB!\n", hnd,notifyfilter,flags );
return 0; 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;
}