Skip to content

Commit ed4cf1a

Browse files
committed
Windows: add a couple of constants to WinSDK
Add some WinUser.h (User32) constants to WinSDK to make it easier to use the WinSDK for more purposes (e.g. SwiftWin32).
1 parent 430a3bd commit ed4cf1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/Windows/WinSDK.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ public let FOF_NO_UI: FILEOP_FLAGS =
4141
public let INVALID_SOCKET: SOCKET = SOCKET(bitPattern: -1)
4242
public let FIONBIO: Int32 = 0x4667e
4343

44+
// WinUser.h
45+
public let WS_OVERLAPPEDWINDOW: UINT =
46+
UINT(WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
47+
public let WS_POPUPWINDOW: UINT =
48+
UINT(WS_POPUP | WS_BORDER | WS_SYSMENU)

0 commit comments

Comments
 (0)