From 521c0e4afa290e0d1878f25e086a7cdd13019845 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 10 Jul 2000 10:58:16 +0000 Subject: [PATCH] Stub for RegisterDeviceNotificationA. --- dlls/user/user32.spec | 3 +++ include/winuser.h | 11 +++++++++++ windows/user.c | 12 ++++++++++++ 3 files changed, 26 insertions(+) diff --git a/dlls/user/user32.spec b/dlls/user/user32.spec index 71e53e96e34..18b5513b92f 100644 --- a/dlls/user/user32.spec +++ b/dlls/user/user32.spec @@ -634,3 +634,6 @@ rsrc user32 801 stdcall SetMenuInfo(long ptr)SetMenuInfo 802 stdcall GetProcessDefaultLayout(ptr) GetProcessDefaultLayout 803 stdcall SetProcessDefaultLayout(long) SetProcessDefaultLayout +804 stdcall RegisterDeviceNotificationA(long ptr long) RegisterDeviceNotificationA +805 stub RegisterDeviceNotificationW +806 stub UnregisterDeviceNotification diff --git a/include/winuser.h b/include/winuser.h index 0d1da7905d3..495115b0c21 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -2984,6 +2984,13 @@ typedef struct #define NF_QUERY 3 #define NF_REQUERY 4 +/* RegisterDeviceNotification stuff */ +typedef PVOID HDEVNOTIFY; +typedef HDEVNOTIFY *PHDEVNOTIFY; + +#define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000 + + #include "poppack.h" #define EnumTaskWindows(handle,proc,lparam) \ EnumThreadWindows(handle,proc,lparam) @@ -3053,6 +3060,9 @@ BOOL WINAPI PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM); BOOL WINAPI PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM); #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage) BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT); +HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD); +HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD); +#define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification) UINT WINAPI ReuseDDElParam(UINT,UINT,UINT,UINT,UINT); BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,FARPROC,DWORD); BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,FARPROC,DWORD); @@ -3074,6 +3084,7 @@ INT WINAPI ToUnicode(UINT,UINT,PBYTE,LPWSTR,int,UINT); BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND, LPTPMPARAMS); UINT WINAPI UnpackDDElParam(UINT,UINT,UINT*,UINT*); +BOOL WINAPI UnregisterDeviceNotification(HDEVNOTIFY); BOOL WINAPI UnregisterHotKey(HWND,INT); DWORD WINAPI WaitForInputIdle(HANDLE,DWORD); VOID WINAPI keybd_event(BYTE,BYTE,DWORD,DWORD); diff --git a/windows/user.c b/windows/user.c index aa0daea1fb0..d40a28d2c5e 100644 --- a/windows/user.c +++ b/windows/user.c @@ -682,3 +682,15 @@ void WINAPI RegisterSystemThread(DWORD flags, DWORD reserved) { FIXME_(win32)("(%08lx, %08lx)\n", flags, reserved); } + +/*********************************************************************** + * RegisterDeviceNotification (USER32.477) + */ +HDEVNOTIFY WINAPI RegisterDeviceNotificationA( + HANDLE hnd, LPVOID notifyfilter, DWORD flags +) { + FIXME_(win32)("(hwnd=%08x, filter=%p,flags=0x%08lx), STUB!\n", + hnd,notifyfilter,flags + ); + return 0; +}