mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
style fixes
This commit is contained in:
parent
d0ebf0bc76
commit
d14be5730a
@ -258,26 +258,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
|
||||
|
||||
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
||||
{
|
||||
BOOL fRC = true;
|
||||
DWORD exit_code;
|
||||
bool result = true;
|
||||
DWORD exitCode;
|
||||
|
||||
GetExitCodeProcess(handle.process(), &exit_code);
|
||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
||||
GetExitCodeProcess(handle.process(), &exitCode);
|
||||
if (exitCode != STILL_ACTIVE) result = false;
|
||||
|
||||
return fRC;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
||||
{
|
||||
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
||||
BOOL fRC = true;
|
||||
DWORD exit_code;
|
||||
bool result = true;
|
||||
DWORD exitCode;
|
||||
|
||||
GetExitCodeProcess(hProc, &exit_code);
|
||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
||||
GetExitCodeProcess(hProc, &exitCode);
|
||||
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 fRC = true;
|
||||
DWORD exit_code;
|
||||
bool result = true;
|
||||
DWORD exitCode;
|
||||
|
||||
GetExitCodeProcess(handle.process(), &exit_code);
|
||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
||||
GetExitCodeProcess(handle.process(), &exitCode);
|
||||
if (exitCode != STILL_ACTIVE) result = false;
|
||||
|
||||
return fRC;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
||||
{
|
||||
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
||||
BOOL fRC = true;
|
||||
DWORD exit_code;
|
||||
bool result = true;
|
||||
DWORD exitCode;
|
||||
|
||||
GetExitCodeProcess(hProc, &exit_code);
|
||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
||||
GetExitCodeProcess(hProc, &exitCode);
|
||||
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 fRC = true;
|
||||
DWORD exit_code;
|
||||
bool result = true;
|
||||
DWORD exitCode;
|
||||
|
||||
GetExitCodeProcess(handle.process(), &exit_code);
|
||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
||||
GetExitCodeProcess(handle.process(), &exitCode);
|
||||
if (exitCode != STILL_ACTIVE) result = false;
|
||||
|
||||
return fRC;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
||||
{
|
||||
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
|
||||
BOOL fRC = true;
|
||||
DWORD exit_code;
|
||||
bool result = true;
|
||||
DWORD exitCode;
|
||||
|
||||
GetExitCodeProcess(hProc, &exit_code);
|
||||
if (exit_code != STILL_ACTIVE) fRC = false;
|
||||
GetExitCodeProcess(hProc, &exitCode);
|
||||
if (exitCode != STILL_ACTIVE) result = false;
|
||||
|
||||
return fRC;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user