mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
style fixes
This commit is contained in:
@@ -258,26 +258,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
|
|||||||
|
|
||||||
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
||||||
{
|
{
|
||||||
BOOL fRC = true;
|
bool result = true;
|
||||||
DWORD exit_code;
|
DWORD exitCode;
|
||||||
|
|
||||||
GetExitCodeProcess(handle.process(), &exit_code);
|
GetExitCodeProcess(handle.process(), &exitCode);
|
||||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
if (exitCode != STILL_ACTIVE) result = false;
|
||||||
|
|
||||||
return fRC;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
||||||
{
|
{
|
||||||
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
||||||
BOOL fRC = true;
|
bool result = true;
|
||||||
DWORD exit_code;
|
DWORD exitCode;
|
||||||
|
|
||||||
GetExitCodeProcess(hProc, &exit_code);
|
GetExitCodeProcess(hProc, &exitCode);
|
||||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
if (exitCode != STILL_ACTIVE) result = false;
|
||||||
|
|
||||||
return fRC;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -264,26 +264,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
|
|||||||
|
|
||||||
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
||||||
{
|
{
|
||||||
BOOL fRC = true;
|
bool result = true;
|
||||||
DWORD exit_code;
|
DWORD exitCode;
|
||||||
|
|
||||||
GetExitCodeProcess(handle.process(), &exit_code);
|
GetExitCodeProcess(handle.process(), &exitCode);
|
||||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
if (exitCode != STILL_ACTIVE) result = false;
|
||||||
|
|
||||||
return fRC;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
||||||
{
|
{
|
||||||
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
||||||
BOOL fRC = true;
|
bool result = true;
|
||||||
DWORD exit_code;
|
DWORD exitCode;
|
||||||
|
|
||||||
GetExitCodeProcess(hProc, &exit_code);
|
GetExitCodeProcess(hProc, &exitCode);
|
||||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
if (exitCode != STILL_ACTIVE) result = false;
|
||||||
|
|
||||||
return fRC;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -189,26 +189,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
|
|||||||
|
|
||||||
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
||||||
{
|
{
|
||||||
BOOL fRC = true;
|
bool result = true;
|
||||||
DWORD exit_code;
|
DWORD exitCode;
|
||||||
|
|
||||||
GetExitCodeProcess(handle.process(), &exit_code);
|
GetExitCodeProcess(handle.process(), &exitCode);
|
||||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
if (exitCode != STILL_ACTIVE) result = false;
|
||||||
|
|
||||||
return fRC;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
||||||
{
|
{
|
||||||
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
||||||
BOOL fRC = true;
|
bool result = true;
|
||||||
DWORD exit_code;
|
DWORD exitCode;
|
||||||
|
|
||||||
GetExitCodeProcess(hProc, &exit_code);
|
GetExitCodeProcess(hProc, &exitCode);
|
||||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
if (exitCode != STILL_ACTIVE) result = false;
|
||||||
|
|
||||||
return fRC;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user