aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/process.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-01 15:53:00 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-01 15:53:00 +0300
commite395c296c7b1eb4d07a5b63e5b3189c770d4f2d5 (patch)
treebff670374be8a783ee9370619f1d39fdc090cbce /src/process.cpp
parentpdb::error: include function name in error message (diff)
downloadwinapi-debug-e395c296c7b1eb4d07a5b63e5b3189c770d4f2d5.tar.gz
winapi-debug-e395c296c7b1eb4d07a5b63e5b3189c770d4f2d5.zip
Process: static get_executable_path
Diffstat (limited to '')
-rw-r--r--src/process.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.cpp b/src/process.cpp
index 281ee86..683312c 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -114,6 +114,10 @@ Process::Process(Handle&& handle) : Process{::GetProcessId(handle.get()), std::m
Process::Process(ID id, Handle&& handle) : id{id}, handle{std::move(handle)} {}
std::string Process::get_executable_path() const {
+ return get_executable_path(handle);
+}
+
+std::string Process::get_executable_path(const Handle& handle) {
if (handle.get() == ::GetCurrentProcess()) {
return pdb::get_current_executable_path();
} else {