packages feed

Win32 2.6.0.0 → 2.6.1.0

raw patch · 3 files changed

+15/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ System.Win32.Process: c_TerminateProcess :: ProcessHandle -> CUInt -> IO Bool
+ System.Win32.Process: terminateProcessById :: ProcessId -> IO ()

Files

System/Win32/Process.hsc view
@@ -22,6 +22,7 @@ import Control.Monad        ( liftM5 ) import Foreign              ( Ptr, peekByteOff, allocaBytes, pokeByteOff                             , plusPtr )+import Foreign.C.Types      ( CUInt(..) ) import System.Win32.File    ( closeHandle ) import System.Win32.Types @@ -80,6 +81,15 @@  getCurrentProcess :: IO ProcessHandle getCurrentProcess = c_GetCurrentProcess++foreign import WINDOWS_CCONV unsafe "windows.h TerminateProcess"+    c_TerminateProcess :: ProcessHandle -> CUInt -> IO Bool++terminateProcessById :: ProcessId -> IO ()+terminateProcessById p = bracket+    (openProcess pROCESS_TERMINATE False p)+    closeHandle+    (\h -> failIfFalse_ "TerminateProcess" $ c_TerminateProcess h 1)  type Th32SnapHandle = HANDLE type Th32SnapFlags = DWORD
Win32.cabal view
@@ -1,5 +1,5 @@ name:		Win32-version:	2.6.0.0+version:	2.6.1.0 license:	BSD3 license-file:	LICENSE author:		Alastair Reid, shelarcy, Tamar Christina
changelog.md view
@@ -1,5 +1,9 @@ # Changelog for [`Win32` package](http://hackage.haskell.org/package/Win32) +## 2.6.1.0 *November 2017*++* Add `terminateProcessById` (See #91)+ ## 2.6.0.0 *September 2017*  * Make cabal error out on compilation on non-Windows OSes. (See #80)