aboutsummaryrefslogtreecommitdiff
path: root/src/dutil/inc/dirutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dutil/inc/dirutil.h')
-rw-r--r--src/dutil/inc/dirutil.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/dutil/inc/dirutil.h b/src/dutil/inc/dirutil.h
new file mode 100644
index 00000000..0a19a9c0
--- /dev/null
+++ b/src/dutil/inc/dirutil.h
@@ -0,0 +1,54 @@
1#pragma once
2// 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.
3
4
5typedef enum DIR_DELETE
6{
7 DIR_DELETE_FILES = 1,
8 DIR_DELETE_RECURSE = 2,
9 DIR_DELETE_SCHEDULE = 4,
10} DIR_DELETE;
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16BOOL DAPI DirExists(
17 __in_z LPCWSTR wzPath,
18 __out_opt DWORD *pdwAttributes
19 );
20
21HRESULT DAPI DirCreateTempPath(
22 __in_z LPCWSTR wzPrefix,
23 __out_ecount_z(cchPath) LPWSTR wzPath,
24 __in DWORD cchPath
25 );
26
27HRESULT DAPI DirEnsureExists(
28 __in_z LPCWSTR wzPath,
29 __in_opt LPSECURITY_ATTRIBUTES psa
30 );
31
32HRESULT DAPI DirEnsureDelete(
33 __in_z LPCWSTR wzPath,
34 __in BOOL fDeleteFiles,
35 __in BOOL fRecurse
36 );
37
38HRESULT DAPI DirEnsureDeleteEx(
39 __in_z LPCWSTR wzPath,
40 __in DWORD dwFlags
41 );
42
43HRESULT DAPI DirGetCurrent(
44 __deref_out_z LPWSTR* psczCurrentDirectory
45 );
46
47HRESULT DAPI DirSetCurrent(
48 __in_z LPCWSTR wzDirectory
49 );
50
51#ifdef __cplusplus
52}
53#endif
54