1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "win.h" namespace Win { std::string GetCurrentWorkingDirectory() { char path[MAX_PATH]; GetCurrentDirectory(MAX_PATH, path); return path; } void SetDllSearchDirectory(std::string path) { SetDllDirectory(path.c_str()); } }