Author: mnordell Date: Fri Oct 12 12:15:37 2007 New Revision: 29529
URL: http://svn.reactos.org/svn/reactos?rev=29529&view=rev Log: NTSHChangeNotifyRegister completed and to spec
Modified: trunk/reactos/dll/win32/shell32/changenotify.c
Modified: trunk/reactos/dll/win32/shell32/changenotify.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/changenot... ============================================================================== --- trunk/reactos/dll/win32/shell32/changenotify.c (original) +++ trunk/reactos/dll/win32/shell32/changenotify.c Fri Oct 12 12:15:37 2007 @@ -409,21 +409,20 @@ /************************************************************************* * NTSHChangeNotifyRegister [SHELL32.640] * NOTES - * Idlist is an array of structures and Count specifies how many items in the array - * (usually just one I think). - */ -DWORD WINAPI NTSHChangeNotifyRegister( + * 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. + */ +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); }
/*************************************************************************