Add DSCRemote

This commit is contained in:
nastys
2020-02-12 22:24:17 +01:00
parent 06e60b2360
commit 7ca813e24f
7 changed files with 501 additions and 0 deletions
@@ -0,0 +1,17 @@
#include <windows.h>
#include <string>
std::wstring ExePath() {
WCHAR buffer[MAX_PATH];
GetModuleFileNameW(NULL, buffer, MAX_PATH);
return std::wstring(buffer);
}
std::wstring DirPath() {
std::wstring exepath = ExePath();
std::wstring::size_type pos = exepath.find_last_of(L"\\/");
return exepath.substr(0, pos);
}
std::wstring CONFIG_FILE_STRING = DirPath() + L"\\plugins\\DSCRemote.ini";
LPCWSTR CONFIG_FILE = CONFIG_FILE_STRING.c_str();