2 * Win32 file change notification functions
4 * FIXME: this is VERY difficult to implement with proper Unix support
5 * at the wineserver side.
6 * (Unix doesn't really support this)
7 * See http://x57.deja.com/getdoc.xp?AN=575483053 for possible solutions.
9 * Copyright 1998 Ulrich Weigand
21 #include "debugtools.h"
23 DEFAULT_DEBUG_CHANNEL(file);
25 /****************************************************************************
26 * FindFirstChangeNotificationA (KERNEL32.248)
28 HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtree,
29 DWORD dwNotifyFilter )
31 HANDLE ret = INVALID_HANDLE_VALUE;
33 FIXME("this is not supported yet (non-trivial).\n");
35 SERVER_START_REQ( create_change_notification )
37 req->subtree = bWatchSubtree;
38 req->filter = dwNotifyFilter;
39 if (!SERVER_CALL_ERR()) ret = req->handle;
45 /****************************************************************************
46 * FindFirstChangeNotificationW (KERNEL32.249)
48 HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName,
52 LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, lpPathName );
53 HANDLE ret = FindFirstChangeNotificationA( nameA, bWatchSubtree,
55 if (nameA) HeapFree( GetProcessHeap(), 0, nameA );
59 /****************************************************************************
60 * FindNextChangeNotification (KERNEL32.252)
62 BOOL WINAPI FindNextChangeNotification( HANDLE handle )
64 /* FIXME: do something */
68 /****************************************************************************
69 * FindCloseChangeNotification (KERNEL32.247)
71 BOOL WINAPI FindCloseChangeNotification( HANDLE handle)
73 return CloseHandle( handle );