RWsSession rwsSession; //创建Window Server session
rwsSession.Connect(); //连接window server
//隐藏当前程序
TUid curUID = iAppUi->GetAppUID();
TApaTaskList taskList(rwsSession);
TApaTask apaTask = taskList.FindApp(curUID);
apaTask.SendToBackground();
//拨号对话框
const TUid KUidPhoneApp =
{
0x100058b3
};
TApaTaskList taskList1(rwsSession);
TApaTask apaTask1 = taskList1.FindApp(KUidPhoneApp);
apaTask1.SendToBackground();
//apaTask1.BringToForeground(); //程序调用到前台显示
//apaTask1.KillTask(); //关闭程序
rwsSession.Close();