mirror of
https://github.com/themitosan/fpPS4-Temmie-s-Launcher.git
synced 2025-04-02 10:31:50 -04:00
27 lines
512 B
C++
27 lines
512 B
C++
#pragma once
|
|
#ifndef PROCESS_H
|
|
#define PROCESS_H
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
#include <TlHelp32.h>
|
|
#include <vector>
|
|
|
|
class process {
|
|
public:
|
|
struct Pair {
|
|
HANDLE handle;
|
|
PROCESSENTRY32 process;
|
|
};
|
|
|
|
process();
|
|
~process();
|
|
|
|
Pair openProcess(const char* processName, char** errorMessage);
|
|
Pair openProcess(DWORD processId, char** errorMessage);
|
|
void closeProcess(HANDLE hProcess);
|
|
std::vector<PROCESSENTRY32> getProcesses(char** errorMessage);
|
|
};
|
|
|
|
#endif
|
|
#pragma once
|