Removed some unnecessary #includes and dll dependencies.
[wine/multimedia.git] / files / change.c
blob80ea17e14eb67ea027532303b83bd94e279d7108
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 "heap.h"
20 #include "server.h"
21 #include "debugtools.h"
23 DEFAULT_DEBUG_CHANNEL(file);
25 /****************************************************************************
26 * FindFirstChangeNotificationA (KERNEL32.248)
28 HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtree,
29 DWORD dwNotifyFilter )
31 struct create_change_notification_request *req = get_req_buffer();
33 FIXME("this is not supported yet (non-trivial).\n");
34 req->subtree = bWatchSubtree;
35 req->filter = dwNotifyFilter;
36 server_call( REQ_CREATE_CHANGE_NOTIFICATION );
37 return req->handle;
40 /****************************************************************************
41 * FindFirstChangeNotificationW (KERNEL32.249)
43 HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName,
44 BOOL bWatchSubtree,
45 DWORD dwNotifyFilter)
47 LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, lpPathName );
48 HANDLE ret = FindFirstChangeNotificationA( nameA, bWatchSubtree,
49 dwNotifyFilter );
50 if (nameA) HeapFree( GetProcessHeap(), 0, nameA );
51 return ret;
54 /****************************************************************************
55 * FindNextChangeNotification (KERNEL32.252)
57 BOOL WINAPI FindNextChangeNotification( HANDLE handle )
59 /* FIXME: do something */
60 return TRUE;
63 /****************************************************************************
64 * FindCloseChangeNotification (KERNEL32.247)
66 BOOL WINAPI FindCloseChangeNotification( HANDLE handle)
68 return CloseHandle( handle );