通过UID查找应用程序
This code example shows how to find (and end) a running application (i.e. a task) by its UID using the TApaTaskList
and TApaTask
classes.
下面的代码演示了,如何使用TApaTaskList
和TApaTask
类来查找正在运行中的应用程序
const TUid KMyAppUid = {0x10009e9f};
TApaTaskList taskList(CCoeEnv::Static()->WsSession());
TApaTask task = taskList.FindApp(KMyAppUid);
if (task.Exists())
{
task.EndTask(); //结束该应用程序。
}
转载自:http://blog.csdn.net/wh_xiexing/archive/2007/11/06/1870205.aspx