There are 2 repositories under process-list topic.
Source code of exploiting windows API for red teaming series
Cross-platform native method to receive the list of the launched processes
Example Windows Kernel-mode Driver which enumerates running processes.
Get process handle(s) from process name using NtGetNextProcess and GetProcessImageFileName
Get process handle(s) from process name using NtGetNextProcess and GetProcessImageFileName