通过UID查找应用程序

来源:互联网 发布:阿里云内容禁止访问 编辑:程序博客网 时间:2024/05/17 04:30

通过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.

下面的代码演示了,如何使用TApaTaskListTApaTask 类来查找正在运行中的应用程序

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

 

 

原创粉丝点击