From 520357b1d4e60bd92f73c871f45233626ffcd29b Mon Sep 17 00:00:00 2001 From: Mike Nordell Date: Fri, 12 Oct 2007 08:15:37 +0000 Subject: [PATCH] NTSHChangeNotifyRegister completed and to spec svn path=/trunk/; revision=29529 --- reactos/dll/win32/shell32/changenotify.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/reactos/dll/win32/shell32/changenotify.c b/reactos/dll/win32/shell32/changenotify.c index b3cf051734d..d59d40f6dfc 100644 --- a/reactos/dll/win32/shell32/changenotify.c +++ b/reactos/dll/win32/shell32/changenotify.c @@ -409,21 +409,20 @@ void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID /************************************************************************* * NTSHChangeNotifyRegister [SHELL32.640] * NOTES - * Idlist is an array of structures and Count specifies how many items in the array - * (usually just one I think). + * Idlist is an array of structures and Count specifies how many items in the array. + * count should always be one when calling SHChangeNotifyRegister, or + * SHChangeNotifyDeregister will not work properly. */ -DWORD WINAPI NTSHChangeNotifyRegister( +ULONG WINAPI NTSHChangeNotifyRegister( HWND hwnd, - LONG events1, - LONG events2, - DWORD msg, + int fSources, + LONG fEvents, + UINT msg, int count, SHChangeNotifyEntry *idlist) { - FIXME("(%p,0x%08x,0x%08x,0x%08x,0x%08x,%p):semi stub.\n", - hwnd,events1,events2,msg,count,idlist); - - return (DWORD) SHChangeNotifyRegister(hwnd, events1, events2, msg, count, idlist); + return SHChangeNotifyRegister(hwnd, fSources | SHCNRF_NewDelivery, + fEvents, msg, count, idlist); } /*************************************************************************