From 31e67757ce6c6435bfd1a1d2fd030755b52a0a5b Mon Sep 17 00:00:00 2001 From: s1egesystems <51238001+s1egesystems@users.noreply.github.com> Date: Thu, 27 Feb 2020 23:08:18 +0000 Subject: [PATCH] Update single.go --- single.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/single.go b/single.go index d8bf432..cfcecff 100644 --- a/single.go +++ b/single.go @@ -31,12 +31,11 @@ func getprocname(id uint32) string { } func getpid() uint32 { + // enter target processes here, the more the better.. + target_procs := []string{"OneDrive.exe", "Telegram.exe", "Spotify.exe", "Messenger.exe"} sz := uint32(1000) procs := make([]uint32, sz) var bytesReturned uint32 - - // enter target processes here, the more the better.. - target_procs := []string{"OneDrive.exe", "Telegram.exe", "Spotify.exe", "Messenger.exe"} for _,proc := range target_procs { if w32.EnumProcesses(procs, sz, &bytesReturned) { for _, pid := range procs[:int(bytesReturned)/4] {