2 * Win32 file change notification functions
4 * Copyright 1998 Ulrich Weigand
21 /****************************************************************************
22 * FindFirstChangeNotification32A (KERNEL32.248)
24 HANDLE WINAPI
FindFirstChangeNotificationA( LPCSTR lpPathName
,
26 DWORD dwNotifyFilter
)
28 struct create_change_notification_request req
;
29 struct create_change_notification_reply reply
;
31 req
.subtree
= bWatchSubtree
;
32 req
.filter
= dwNotifyFilter
;
33 CLIENT_SendRequest( REQ_CREATE_CHANGE_NOTIFICATION
, -1, 1, &req
, sizeof(req
) );
34 CLIENT_WaitSimpleReply( &reply
, sizeof(reply
), NULL
);
38 /****************************************************************************
39 * FindFirstChangeNotification32W (KERNEL32.249)
41 HANDLE WINAPI
FindFirstChangeNotificationW( LPCWSTR lpPathName
,
45 LPSTR nameA
= HEAP_strdupWtoA( GetProcessHeap(), 0, lpPathName
);
46 HANDLE ret
= FindFirstChangeNotificationA( nameA
, bWatchSubtree
,
48 if (nameA
) HeapFree( GetProcessHeap(), 0, nameA
);
52 /****************************************************************************
53 * FindNextChangeNotification (KERNEL32.252)
55 BOOL WINAPI
FindNextChangeNotification( HANDLE handle
)
57 /* FIXME: do something */
61 /****************************************************************************
62 * FindCloseChangeNotification (KERNEL32.247)
64 BOOL WINAPI
FindCloseChangeNotification( HANDLE handle
)
66 return CloseHandle( handle
);