~Program();
/// Return process ID of this program.
- unsigned GetPid();
+ unsigned GetPid() const;
/// This function executes the program using the \p arguments provided. The
/// invoked program will inherit the stdin, stdout, and stderr file
Program::~Program() {}
-unsigned Program::GetPid() {
+unsigned Program::GetPid() const {
return reinterpret_cast<unsigned>(Data_);
}
}
}
-unsigned Program::GetPid() {
+unsigned Program::GetPid() const {
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
return GetProcessId(hProcess);
}