MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / OnShellFinished

Method OnShellFinished

src/ConEmuHk/ShellProcessor.cpp:3306–3335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3304}
3305
3306void CShellProc::OnShellFinished(BOOL abSucceeded, HINSTANCE ahInstApp, HANDLE ahProcess)
3307{
3308#ifdef _DEBUG
3309 DWORD dwProcessID = 0;
3310 if (abSucceeded && gfGetProcessId && ahProcess)
3311 {
3312 dwProcessID = gfGetProcessId(ahProcess);
3313 }
3314 std::ignore = dwProcessID;
3315#endif
3316
3317 // InjectHooks & ResumeThread тут делать не нужно, просто вернуть параметры, если было переопределение
3318 if (mlp_SaveExecInfoW)
3319 {
3320 mlp_SaveExecInfoW->hInstApp = ahInstApp;
3321 mlp_SaveExecInfoW->hProcess = ahProcess;
3322 }
3323 else if (mlp_SaveExecInfoA)
3324 {
3325 mlp_SaveExecInfoA->hInstApp = ahInstApp;
3326 mlp_SaveExecInfoA->hProcess = ahProcess;
3327 }
3328
3329 if (mb_InShellExecuteEx)
3330 {
3331 if (gnInShellExecuteEx > 0)
3332 gnInShellExecuteEx--;
3333 mb_InShellExecuteEx = FALSE;
3334 }
3335}
3336
3337void CShellProc::LogShellString(LPCWSTR asMessage) const
3338{

Callers 4

OnShellExecuteExAFunction · 0.80
OnShellExecuteExWFunction · 0.80
OnShellExecuteAFunction · 0.80
OnShellExecuteWFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected