Skip to content

Commit 3bd86ab

Browse files
committed
Windows: add FOF_NO_UI into the overlay
This constant is needed for SHFileOperation which is needed for Foundation. Unfortunately, it is a complex macro which will not be imported by the ClangImporter.
1 parent bbfc064 commit 3bd86ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/Windows/WinSDK.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ public let TRUE: BOOL = 1
3333
// handleapi.h
3434
public let INVALID_HANDLE_VALUE: HANDLE = HANDLE(bitPattern: -1)!
3535

36+
// shellapi.h
37+
public let FOF_NO_UI: DWORD =
38+
DWORD(FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)
39+

0 commit comments

Comments
 (0)