Files
swift-mirror/stdlib/public/Windows/WinSDK.swift
Saleem Abdulrasool 362235c166 WindowsSDK: add definition for INVALID_HANDLE_VALUE
Since handle's are so common place on Windows and the clang importer cannot
import the complex macro for INVALID_HANDLE_VALUE, define it locally to provide
an easier path to writing swift code on Windows.  This repairs the Windows
builds.
2018-12-21 09:18:12 -08:00

36 lines
975 B
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
@_exported import WinSDK // Clang module
// WinBase.h
public let HANDLE_FLAG_INHERIT: DWORD = 0x00000001
// WinBase.h
public let STARTF_USESTDHANDLES: DWORD = 0x00000100
// WinBase.h
public let INFINITE: DWORD = DWORD(bitPattern: -1)
// WinBase.h
public let WAIT_OBJECT_0: DWORD = 0
// minwindef.h
public let FALSE: BOOL = 0
// minwindef.h
public let TRUE: BOOL = 1
// handleapi.h
public let INVALID_HANDLE_VALUE: HANDLE = HANDLE(bitPattern: -1)!