main
h 59 lines 1.16 KB
Raw
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
5 typedef 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
13 extern "C" {
14 #endif
15
16 BOOL DAPI DirExists(
17 __in_z LPCWSTR wzPath,
18 __out_opt DWORD *pdwAttributes
19 );
20
21 HRESULT DAPI DirCreateTempPath(
22 __in_z LPCWSTR wzPrefix,
23 __out_opt LPWSTR* psczTempFile
24 );
25
26 HRESULT DAPI DirEnsureExists(
27 __in_z LPCWSTR wzPath,
28 __in_opt LPSECURITY_ATTRIBUTES psa
29 );
30
31 HRESULT DAPI DirEnsureDelete(
32 __in_z LPCWSTR wzPath,
33 __in BOOL fDeleteFiles,
34 __in BOOL fRecurse
35 );
36
37 HRESULT DAPI DirEnsureDeleteEx(
38 __in_z LPCWSTR wzPath,
39 __in DWORD dwFlags
40 );
41
42 DWORD DAPI DirDeleteEmptyDirectoriesToRoot(
43 __in_z LPCWSTR wzPath,
44 __in DWORD dwFlags
45 );
46
47 HRESULT DAPI DirGetCurrent(
48 __deref_out_z LPWSTR* psczCurrentDirectory,
49 __out_opt SIZE_T* pcch
50 );
51
52 HRESULT DAPI DirSetCurrent(
53 __in_z LPCWSTR wzDirectory
54 );
55
56 #ifdef __cplusplus
57 }
58 #endif
59