Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of currently running process in golang, Windows version

Tags:

windows

go

winapi

How can I get the list of currently running processes in golang under Windows?

I need something like:

List of currently running process in Golang

but usable under Windows too.

like image 291
Sebastián Grignoli Avatar asked Jul 06 '12 05:07

Sebastián Grignoli


1 Answers

I just implemented the function you need (EnumProcess as axw stated above). Check out https://github.com/AllenDang/w32. You might want to wait until my pull request is through :) An example on how to use: https://gist.github.com/3083408

like image 181
Michael Avatar answered Sep 17 '22 13:09

Michael