-
Notifications
You must be signed in to change notification settings - Fork 3
/
_zupathmatchspecex.prg
57 lines (39 loc) · 1.94 KB
/
_zupathmatchspecex.prg
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
*!* _zapipathmatchspecex
*!* pszFile [in]
*!* A pointer to a null-terminated string of maximum length MAX_PATH that contains
*!* the path from which the file name to be matched is taken.
*!* pszSpec [in]
*!* A pointer to a null-terminated string of maximum length MAX_PATH that contains
*!* the file name pattern for which to search. This can be the exact name, or it can
*!* contain wildcard characters. If exactly one pattern is specified, set the PMSF_NORMAL
*!* flag in dwFlags. If more than one pattern is specified, separate them with semicolons
*!* and set the PMSF_MULTIPLE flag.
*!* dwFlags [in]
*!* Modifies the search condition. The following are valid flags.
*!* PMSF_NORMAL (0x00000000)
*!* The pszSpec parameter points to a single file name pattern to be matched.
*!* PMSF_MULTIPLE (0x00000001)
*!* The pszSpec parameter points to a semicolon-delimited list of file name patterns to be matched.
*!* PMSF_DONT_STRIP_SPACES (0x00010000)
*!* If PMSF_NORMAL is used, ignore leading spaces in the string pointed to by pszSpec.
*!* If PMSF_MULTIPLE is used, ignore leading spaces in each file type contained in the
*!* string pointed to by pszSpec. This flag can be combined with PMSF_NORMAL and PMSF_MULTIPLE.
*!* Return value
*!* Type: HRESULT
*!* Returns one of the following values.
*!* S_OK
*!* A file name pattern specified in pszSpec matched the file name found in the string pointed to by pszFile.
*!* S_FALSE
*!* No file name pattern specified in pszSpec matched the file name found in the string pointed to by pszFile.
*!* YES, RETURNS 0 FOR A MATCH AND 1 FOR NO MATCH
#define PMSF_NORMAL 0x00000000
#define PMSF_MULTIPLE 0x00000001
#define PMSF_DONT_STRIP_SPACES 0x00010000
#define S_OK 0
#define S_FALSE 1
lparameters pszFile, pszSpec, dwFlags
declare integer PathMatchSpecEx in shlwapi.dll as _zapipathmatchspecex;
string pszFile, ;
string pszSpec, ;
integer dwFlags
return _zapipathmatchspecex(m.pszFile, m.pszSpec, m.dwFlags)