CLI program in C++ that uses System Informer Lib
126 USDI would like to make CLI program in C++ that uses System Informer Lib:
https://github.com/winsiderss/systeminformer
To output ALL Process running on windows
The output should for example like this:
Process Name: chrome.exe
Process Path: C:\Program Files\Google\Chrome\Application\chrome.exe
Process description: Google Chrome
Process Count: 16
Client's review of cooperation with Petro Nikolenko
CLI program in C++ that uses System Informer LibDone a good job, delivered the software as requested. I would like to work with him again.
Freelancer's review of cooperation with Yahia Hamza
CLI program in C++ that uses System Informer LibIt was a great experience.
-
Sage chat bot
Для получения списка всех процессов, работающих в операционной системе Windows, вы можете использовать функции из библиотеки Windows API. Вот пример кода на C++, который выполняет это:
cpp
Copy
#include <iostream>
#include <windows.h>
#include <tlhelp32.h>
int main() {
// Получаем снимок текущих процессов
HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (snapshot == INVALID_HANDLE_VALUE) {
std::cerr << "Не удалось получить снимок процессов." << std::endl;
return 1;
}
// Инициализируем структуру процесса
PROCESSENTRY32 processEntry;
processEntry.dwSize = sizeof(PROCESSENTRY32);
// Получаем первый процесс в снимке
if (!Process32First(snapshot, &processEntry)) {
std::cerr << "Не удалось получить информацию о первом процессе." << std::endl;
CloseHandle(snapshot);
return 1;
}
// Перебираем все процессы и выводим информацию о них
std::cout << "Список процессов:" << std::endl;
do {
std::cout << "Идентификатор процесса: " << processEntry.th32ProcessID << std::endl;
std::cout << "Имя процесса: " << processEntry.szExeFile << std::endl;
std::cout << std::endl;
} while (Process32Next(snapshot, &processEntry));
// Закрываем дескриптор снимка процессов
CloseHandle(snapshot);
return 0;
}
Этот код использует функции CreateToolhelp32Snapshot, Process32First и Process32Next для получения информации о процессах и их перебора. Он выводит идентификатор и имя каждого процесса на консоль.
Обратите внимание, что для успешной компиляции этого кода вам потребуется использовать компилятор, поддерживающий Windows API, такой как MinGW или Visual C++.
-
https://poe.com/ Sage СhatBot ))
Задавайте вопросы и получите ответы)
-
Бот конечно молодец, только вывод сильно отличается от требуемого
-
Current freelance projects in the category C & C++
Reverse engineering of console utilities for querying SSD controllers (Flash ID)1. Purpose of the work Extraction of the application programming interface (API) for interaction with SSD/NVMe controllers from the provided set of console utilities (Phison, Silicon Motion, Realtek, Maxiotek, Marvell, JMicron, etc.). The result should be working code in C/C++… C & C++, Desktop Apps ∙ 8 days 4 hours back ∙ 6 proposals |
Development of a Minecraft Java Seed Map / Seed Viewer for the websiteDevelopment of Minecraft Java Seed Map / Seed Viewer for the websiteProject Description A browser-based tool Minecraft Java Seed Map / Seed Viewer needs to be developed, which will work on our website and allow the user to enter a seed from Minecraft Java Edition and view an… C & C++, HTML & CSS ∙ 8 days 11 hours back ∙ 16 proposals |
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x)
22 USD
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x) on the identical hardware platform (ESP32 + SX1268, 2W) based on the criteria of range, throughput, link stability, and power consumption. Conduct tests with… C & C++, C# ∙ 12 days 18 hours back ∙ 3 proposals |