Fix off by one error in TOOLBAR_AddStringW.
[wine/wine-kai.git] / files / change.c
bloba7a4cd09715c4cd871deeafd18c422947e819eb0
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
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 "wine/server.h"
20 #include "debugtools.h"
22 DEFAULT_DEBUG_CHANNEL(file);
24 /****************************************************************************
25 * FindFirstChangeNotificationA (KERNEL32.@)
27 HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtree,
28 DWORD dwNotifyFilter )
30 HANDLE ret = INVALID_HANDLE_VALUE;
32 FIXME("this is not supported yet (non-trivial).\n");
34 SERVER_START_REQ( create_change_notification )
36 req->subtree = bWatchSubtree;
37 req->filter = dwNotifyFilter;
38 if (!wine_server_call_err( req )) ret = reply->handle;
40 SERVER_END_REQ;
41 return ret;
44 /****************************************************************************
45 * FindFirstChangeNotificationW (KERNEL32.@)
47 HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName,
48 BOOL bWatchSubtree,
49 DWORD dwNotifyFilter)
51 HANDLE ret = INVALID_HANDLE_VALUE;
53 FIXME("this is not supported yet (non-trivial).\n");
55 SERVER_START_REQ( create_change_notification )
57 req->subtree = bWatchSubtree;
58 req->filter = dwNotifyFilter;
59 if (!wine_server_call_err( req )) ret = reply->handle;
61 SERVER_END_REQ;
62 return ret;
65 /****************************************************************************
66 * FindNextChangeNotification (KERNEL32.@)
68 BOOL WINAPI FindNextChangeNotification( HANDLE handle )
70 /* FIXME: do something */
71 return TRUE;
74 /****************************************************************************
75 * FindCloseChangeNotification (KERNEL32.@)
77 BOOL WINAPI FindCloseChangeNotification( HANDLE handle)
79 return CloseHandle( handle );