Merge pull request #30 from brunoqc/master

Add TerminateProcess()
diff --git a/kernel32.go b/kernel32.go
index 4db5b03..e7af4ed 100644
--- a/kernel32.go
+++ b/kernel32.go
@@ -31,6 +31,7 @@
 	procLoadResource               = modkernel32.NewProc("LoadResource")
 	procGetLastError               = modkernel32.NewProc("GetLastError")
 	procOpenProcess                = modkernel32.NewProc("OpenProcess")
+	procTerminateProcess           = modkernel32.NewProc("TerminateProcess")
 	procCloseHandle                = modkernel32.NewProc("CloseHandle")
 	procCreateToolhelp32Snapshot   = modkernel32.NewProc("CreateToolhelp32Snapshot")
 	procModule32First              = modkernel32.NewProc("Module32FirstW")
@@ -206,6 +207,13 @@
 	return HANDLE(ret)
 }
 
+func TerminateProcess(hProcess HANDLE, uExitCode uint) bool {
+	ret, _, _ := procTerminateProcess.Call(
+		uintptr(hProcess),
+		uintptr(uExitCode))
+	return ret != 0
+}
+
 func CloseHandle(object HANDLE) bool {
 	ret, _, _ := procCloseHandle.Call(
 		uintptr(object))