Symbian Security Studio

About symbian software programming ,security analysis and other things about symbian.

Monday, October 1, 2007

How to Kill an .exe



How to Kill an .exe
From Forum Nokia Wiki
Jump to: navigation, search
The following code snippet illustrates the way to kill a running exe.

TFindProcess FindProc;
FindProc.Find(_L("YrExe*"));
TFullName ProcName;
TInt rErr = FindProc.Next(ProcName);
if (!rErr)
{
RProcess Process;
rErr = Process.Open(ProcName, EOwnerThread);
if (!rErr)
{
Process.Kill(KErrCancel);
Process.Close();
}
}

Labels:

66 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home