Cleaned up the rectangle handling, and fixed numerous bugs in
[wine/multimedia.git] / files / change.c
blob18c619fc60373a23ff21a13ef1df7a53e9becba5
1 /*
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
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "config.h"
28 #include <assert.h>
29 #include <stdlib.h>
30 #ifdef HAVE_UNISTD_H
31 # include <unistd.h>
32 #endif
33 #include <string.h>
34 #include <time.h>
35 #include "winbase.h"
36 #include "winerror.h"
37 #include "wine/server.h"
38 #include "wine/debug.h"
40 WINE_DEFAULT_DEBUG_CHANNEL(file);
42 /****************************************************************************
43 * FindFirstChangeNotificationA (KERNEL32.@)
45 HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtree,
46 DWORD dwNotifyFilter )
48 HANDLE ret = INVALID_HANDLE_VALUE;
50 FIXME("this is not supported yet (non-trivial).\n");
52 SERVER_START_REQ( create_change_notification )
54 req->subtree = bWatchSubtree;
55 req->filter = dwNotifyFilter;
56 if (!wine_server_call_err( req )) ret = reply->handle;
58 SERVER_END_REQ;
59 return ret;
62 /****************************************************************************
63 * FindFirstChangeNotificationW (KERNEL32.@)
65 HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName,
66 BOOL bWatchSubtree,
67 DWORD dwNotifyFilter)
69 HANDLE ret = INVALID_HANDLE_VALUE;
71 FIXME("this is not supported yet (non-trivial).\n");
73 SERVER_START_REQ( create_change_notification )
75 req->subtree = bWatchSubtree;
76 req->filter = dwNotifyFilter;
77 if (!wine_server_call_err( req )) ret = reply->handle;
79 SERVER_END_REQ;
80 return ret;
83 /****************************************************************************
84 * FindNextChangeNotification (KERNEL32.@)
86 BOOL WINAPI FindNextChangeNotification( HANDLE handle )
88 /* FIXME: do something */
89 return TRUE;
92 /****************************************************************************
93 * FindCloseChangeNotification (KERNEL32.@)
95 BOOL WINAPI FindCloseChangeNotification( HANDLE handle)
97 return CloseHandle( handle );