blob: b8fc0431f1e38f82da0de8ed95c923507f62b065 (
plain)
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
|
#pragma once
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
typedef enum DIR_DELETE
{
DIR_DELETE_FILES = 1,
DIR_DELETE_RECURSE = 2,
DIR_DELETE_SCHEDULE = 4,
} DIR_DELETE;
#ifdef __cplusplus
extern "C" {
#endif
BOOL DAPI DirExists(
__in_z LPCWSTR wzPath,
__out_opt DWORD *pdwAttributes
);
HRESULT DAPI DirCreateTempPath(
__in_z LPCWSTR wzPrefix,
__out_opt LPWSTR* psczTempFile
);
HRESULT DAPI DirEnsureExists(
__in_z LPCWSTR wzPath,
__in_opt LPSECURITY_ATTRIBUTES psa
);
HRESULT DAPI DirEnsureDelete(
__in_z LPCWSTR wzPath,
__in BOOL fDeleteFiles,
__in BOOL fRecurse
);
HRESULT DAPI DirEnsureDeleteEx(
__in_z LPCWSTR wzPath,
__in DWORD dwFlags
);
DWORD DAPI DirDeleteEmptyDirectoriesToRoot(
__in_z LPCWSTR wzPath,
__in DWORD dwFlags
);
HRESULT DAPI DirGetCurrent(
__deref_out_z LPWSTR* psczCurrentDirectory,
__out_opt SIZE_T* pcch
);
HRESULT DAPI DirSetCurrent(
__in_z LPCWSTR wzDirectory
);
#ifdef __cplusplus
}
#endif
|