branch update for HEAD-2003021201
[reactos.git] / lib / kernel32 / file / cnotify.c
1 /* $Id$
2  *
3  * COPYRIGHT:       See COPYING in the top level directory
4  * PROJECT:         ReactOS system libraries
5  * FILE:            lib/kernel32/file/find.c
6  * PURPOSE:         Find functions
7  * PROGRAMMER:      Ariadne ( ariadne@xs4all.nl)
8  * UPDATE HISTORY:
9  *                  Created 01/11/98
10  */
11
12 #include <k32.h>
13
14
15 WINBOOL STDCALL
16 FindCloseChangeNotification (HANDLE hChangeHandle)
17 {
18   return FALSE;
19 }
20
21
22 HANDLE
23 STDCALL
24 FindFirstChangeNotificationA (
25         LPCSTR  lpPathName,
26         WINBOOL bWatchSubtree,
27         DWORD   dwNotifyFilter
28         )
29 {
30 #if 0
31         UNICODE_STRING PathNameU;
32         ANSI_STRING PathName;
33         HANDLE Result;
34
35         RtlInitAnsiString (&PathName,
36                            (LPSTR)lpPathName);
37
38         /* convert ansi (or oem) string to unicode */
39         if (bIsFileApiAnsi)
40                 RtlAnsiStringToUnicodeString (&PathNameU,
41                                               &PathName,
42                                               TRUE);
43         else
44                 RtlOemStringToUnicodeString (&PathNameU,
45                                              &PathName,
46                                              TRUE);
47
48         Result = FindFirstChangeNotificationW (PathNameU.Buffer,
49                                                bWatchSubtree,
50                                                dwNotifyFilter);
51
52         RtlFreeHeap (RtlGetProcessHeap (),
53                      0,
54                      RootPathNameU.Buffer);
55
56         return Result;
57 #endif
58 }
59
60
61 HANDLE
62 STDCALL
63 FindFirstChangeNotificationW (
64         LPCWSTR lpPathName,
65         WINBOOL bWatchSubtree,
66         DWORD   dwNotifyFilter
67         )
68 {
69         return NULL;
70 }
71
72
73 WINBOOL
74 STDCALL
75 FindNextChangeNotification (
76         HANDLE  hChangeHandle
77         )
78 {
79         return FALSE;
80 }
81
82 /* EOF */