Added German installation and configuration manual.
[wine] / files / change.c
1 /*
2  * Win32 file change notification functions
3  *
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.
8  *
9  * Copyright 1998 Ulrich Weigand
10  */
11
12 #include <assert.h>
13 #include <stdlib.h>
14 #include <unistd.h>
15 #include <string.h>
16 #include <time.h>
17 #include "winbase.h"
18 #include "winerror.h"
19 #include "process.h"
20 #include "thread.h"
21 #include "heap.h"
22 #include "server.h"
23 #include "debugtools.h"
24
25 DEFAULT_DEBUG_CHANNEL(file);
26
27 /****************************************************************************
28  *              FindFirstChangeNotificationA (KERNEL32.248)
29  */
30 HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtree,
31                                             DWORD dwNotifyFilter ) 
32 {
33     struct create_change_notification_request *req = get_req_buffer();
34
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 );
39     return req->handle;
40 }
41
42 /****************************************************************************
43  *              FindFirstChangeNotificationW (KERNEL32.249)
44  */
45 HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName,
46                                                 BOOL bWatchSubtree,
47                                                 DWORD dwNotifyFilter) 
48 {
49     LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, lpPathName );
50     HANDLE ret = FindFirstChangeNotificationA( nameA, bWatchSubtree, 
51                                                           dwNotifyFilter );
52     if (nameA) HeapFree( GetProcessHeap(), 0, nameA );
53     return ret;
54 }
55
56 /****************************************************************************
57  *              FindNextChangeNotification (KERNEL32.252)
58  */
59 BOOL WINAPI FindNextChangeNotification( HANDLE handle ) 
60 {
61     /* FIXME: do something */
62     return TRUE;
63 }
64
65 /****************************************************************************
66  *              FindCloseChangeNotification (KERNEL32.247)
67  */
68 BOOL WINAPI FindCloseChangeNotification( HANDLE handle) 
69 {
70     return CloseHandle( handle );
71 }
72