Started implementation of the functions GetDefaultCommConfigA/W.
[wine.git] / files / change.c
blob5bce5f926c651ce4cd01910beebebf9ffdf13e06
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 "process.h"
20 #include "thread.h"
21 #include "heap.h"
22 #include "server.h"
23 #include "debugtools.h"
25 DEFAULT_DEBUG_CHANNEL(file);
27 /****************************************************************************
28 * FindFirstChangeNotificationA (KERNEL32.248)
30 HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtree,
31 DWORD dwNotifyFilter )
33 struct create_change_notification_request *req = get_req_buffer();
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;
42 /****************************************************************************
43 * FindFirstChangeNotificationW (KERNEL32.249)
45 HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName,
46 BOOL bWatchSubtree,
47 DWORD dwNotifyFilter)
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;
56 /****************************************************************************
57 * FindNextChangeNotification (KERNEL32.252)
59 BOOL WINAPI FindNextChangeNotification( HANDLE handle )
61 /* FIXME: do something */
62 return TRUE;
65 /****************************************************************************
66 * FindCloseChangeNotification (KERNEL32.247)
68 BOOL WINAPI FindCloseChangeNotification( HANDLE handle)
70 return CloseHandle( handle );