2 * Win32 file change notification functions
4 * Copyright 1998 Ulrich Weigand
18 #include "debugtools.h"
21 /****************************************************************************
22 * FindFirstChangeNotificationA (KERNEL32.248)
24 HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtree,
25 DWORD dwNotifyFilter )
27 struct create_change_notification_request *req = get_req_buffer();
29 req->subtree = bWatchSubtree;
30 req->filter = dwNotifyFilter;
31 server_call( REQ_CREATE_CHANGE_NOTIFICATION );
35 /****************************************************************************
36 * FindFirstChangeNotification32W (KERNEL32.249)
38 HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName,
42 LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, lpPathName );
43 HANDLE ret = FindFirstChangeNotificationA( nameA, bWatchSubtree,
45 if (nameA) HeapFree( GetProcessHeap(), 0, nameA );
49 /****************************************************************************
50 * FindNextChangeNotification (KERNEL32.252)
52 BOOL WINAPI FindNextChangeNotification( HANDLE handle )
54 /* FIXME: do something */
58 /****************************************************************************
59 * FindCloseChangeNotification (KERNEL32.247)
61 BOOL WINAPI FindCloseChangeNotification( HANDLE handle)
63 return CloseHandle( handle );