mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-09-19 23:05:03 +00:00
* GWCA integration GWCAMemoryReader partial implementation * Complete Daybreak.GWCA implementation Fix metrics view Upgrade dependencies * Update version * Add solution dir property * Another try * Fix version check * Fix codeql pipeline * Codeql fixes * Fetch submodules * Final codeql change
21 lines
496 B
C++
21 lines
496 B
C++
#include "pch.h"
|
|
#include "ProcessIdModule.h"
|
|
|
|
namespace http {
|
|
namespace modules {
|
|
static DWORD processId = 0;
|
|
|
|
int GetProcessId() {
|
|
if (processId > 0) {
|
|
return processId;
|
|
}
|
|
|
|
processId = GetCurrentProcessId();
|
|
return processId;
|
|
}
|
|
|
|
void HandleProcessId(const httplib::Request&, httplib::Response& res) {
|
|
res.set_content(std::to_string(GetProcessId()), "text/plain");
|
|
}
|
|
}
|
|
} |