blob: 30b7265d6885c54fc3d17e372dff716420d9b081 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
/*++
Copyright (c) 1987-1993 Microsoft Corporation
Module Name:
filefind.h
Abstract:
Contains structures and function prototypes for a win32-like find
file which also returns the EA size for the files.
Author:
17-Oct-1991 (cliffv)
Merged from winbase.h
Environment:
User mode only.
Contains NT-specific code.
Requires ANSI C extensions: slash-slash comments, long external names.
Revision History:
04-Dec-1991 (madana)
redefined _REPL_WIN32_FIND_DATAW structures for better alignment and
removed ANSI related defs.
11-Dec-1991 JohnRo
Avoid unnamed structure fields to allow MIPS builds.
Delete tabs in source file.
24-Jan-1992 JohnRo
Changed to use LPTSTR etc.
26-Mar-1992 JohnRo
Added tchFullPath field to REPL_WIN32_FIND_DATA structure.
11-Jan-1993 JohnRo
RAID 6710: repl cannot manage dir with 2048 files.
06-Apr-1993 JohnRo
Support ReplSum test app.
07-May-1993 JohnRo
RAID 3258: file not updated due to ERROR_INVALID_USER_BUFFER.
--*/
#ifndef _FILEFIND_
#define _FILEFIND_
#include <lmcons.h> // NET_API_STATUS, PATHLEN.
#define INVALID_REPL_HANDLE NULL /* Was (HANDLE)(-1) for Win32. */
typedef struct _REPL_FIND_HANDLE {
HANDLE hWindows;
TCHAR tchFullPath[PATHLEN+1]; // Full path of this file.
DWORD dwDirNameLen; // Number of chars (not incl last "\file").
} REPL_FIND_HANDLE, *PREPL_FIND_HANDLE, *LPREPL_FIND_HANDLE;
typedef struct _REPL_WIN32_FIND_DATA {
WIN32_FIND_DATA fdFound;
DWORD nEaSize;
} REPL_WIN32_FIND_DATA, *PREPL_WIN32_FIND_DATA, *LPREPL_WIN32_FIND_DATA;
//
// Function prototypes.
//
NET_API_STATUS
ReplCountDirectoryEntries(
IN LPCTSTR FullDirPath,
OUT LPDWORD EntryCountPtr
);
LPREPL_FIND_HANDLE
ReplFindFirstFile(
IN LPTSTR lpFileName,
OUT LPREPL_WIN32_FIND_DATA lpFindFileData
);
BOOL
ReplFindNextFile(
IN OUT LPREPL_FIND_HANDLE hFindFile,
IN OUT LPREPL_WIN32_FIND_DATA lpFindFileData
);
BOOL
ReplFindClose(
IN LPREPL_FIND_HANDLE hFindFile
);
#endif // _FILEFIND_
|