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
23 #include "debugtools.h"
25 DEFAULT_DEBUG_CHANNEL(file
);
27 /****************************************************************************
28 * FindFirstChangeNotificationA (KERNEL32.248)
30 HANDLE WINAPI
FindFirstChangeNotificationA( LPCSTR lpPathName
, BOOL bWatchSubtree
,
31 DWORD dwNotifyFilter
)
33 struct create_change_notification_request
*req
= get_req_buffer();
35 FIXME("this is not supported yet (non-trivial).\n");
36 req
->subtree
= bWatchSubtree
;
37 req
->filter
= dwNotifyFilter
;
38 server_call( REQ_CREATE_CHANGE_NOTIFICATION
);
42 /****************************************************************************
43 * FindFirstChangeNotificationW (KERNEL32.249)
45 HANDLE WINAPI
FindFirstChangeNotificationW( LPCWSTR lpPathName
,
49 LPSTR nameA
= HEAP_strdupWtoA( GetProcessHeap(), 0, lpPathName
);
50 HANDLE ret
= FindFirstChangeNotificationA( nameA
, bWatchSubtree
,
52 if (nameA
) HeapFree( GetProcessHeap(), 0, nameA
);
56 /****************************************************************************
57 * FindNextChangeNotification (KERNEL32.252)
59 BOOL WINAPI
FindNextChangeNotification( HANDLE handle
)
61 /* FIXME: do something */
65 /****************************************************************************
66 * FindCloseChangeNotification (KERNEL32.247)
68 BOOL WINAPI
FindCloseChangeNotification( HANDLE handle
)
70 return CloseHandle( handle
);