void CPhiFs::KillProcessesL(void) { CPhiSelection* selection=iListBox->SelectionLC(CurrentFolder(),EFalse,CPhiSelection::ENone); TInt count=selection->Array()->MdcaCount(); for(TInt ii=0;ii<count;ii++) { TPckgC16<TPhiEntry> item(selection->Array()->MdcaPoint(ii)); RProcess process; if(process.Open(item().iName)==KErrNone) { if(!process.Protected()) process.Kill(KErrNone); process.Close(); } } CleanupStack::PopAndDestroy(); //selection RefreshL(); }