kısaca mantığı şu pequereksiyon için windows api kullanıyoruz. ntquerysysteminformation ile sistem bilgisi alabiliyoruz. small bir örnek bıraktım
Kod:
#include <Windows.h>
#include <TlHelp32.h>
int main() {
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
PROCESSENTRY32 pe;
pe.dwSize = sizeof(PROCESSENTRY32);
if (Process32First(hSnapshot, &pe)) {
do {
printf("%s\n", pe.szExeFile);
} while (Process32Next(hSnapshot, &pe));
}
CloseHandle(hSnapshot);
return 0;
}