add winprocess.h

This commit is contained in:
Joey Hess 2017-10-24 12:48:04 -04:00
parent 839ec7e26c
commit 24ba7c4296
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 4 additions and 1 deletions

View file

@ -11,5 +11,5 @@ module Utility.WinProcess where
import Utility.PID
foreign import ccall unsafe "terminatepid"
foreign import ccall unsafe "winprocess.h terminatepid"
terminatePID :: PID -> IO ()

3
Utility/winprocess.h Normal file
View file

@ -0,0 +1,3 @@
#include <windows.h>
void terminatepid (DWORD pid);