SpiecsEngine
 
Loading...
Searching...
No Matches
ProcessLibrary.h
Go to the documentation of this file.
1/**
2* @file ProcessLibrary.h
3* @brief The ProcessLibrary Class Definitions.
4* @author Spices.
5*/
6
7#pragma once
8#include "Core/Core.h"
9
10#include <Windows.h>
11
12namespace Spices {
13
14 /**
15 * @brief Process Static Function Library.
16 */
18 {
19 public:
20
21 /**
22 * @brief Open a Process with command.
23 * @param[in] processPath Process Path.
24 * @param[in] commandLine Commands.
25 * @return Returns true if Open Process Successfully.
26 */
27 static bool OpenProcess(const char* processPath, const char* commandLine = "");
28
29 /**
30 * @brief Close a Process with command.
31 * @param[in] processPath Process Path.
32 * @return Returns true if Open Process Successfully.
33 */
34 static bool CloseProcess(const char* processName);
35
36 /**
37 * @brief Get this Process Memory used( GB ).
38 * @return Returns this Process Memory used( GB ).
39 */
40 static float ProcessMemoryInUsed();
41 };
42}
#define SPICES_PROFILE_ZONE
static bool CloseProcess(const char *processName)
Close a Process with command.
static bool OpenProcess(const char *processPath, const char *commandLine="")
Open a Process with command.
static float ProcessMemoryInUsed()
Get this Process Memory used( GB ).
Process Static Function Library.
static std::wstring CharToWChar(const char *c)
Transform char to wide char.
String Static Function Library.