Symbian 3rd 模拟挂机的实现
2010-03-22 16:24:00 来源:WEB开发网核心提示:void HangUpCall(){RWsSession ws;ws.Connect();TRawEvent ev1;ev1.Set(TRawEvent::EKeyDown, EStdKeyNo);ws.SimulateRawEvent(ev1); // CAPABILITY Req. SwEventUser::Aft
void HangUpCall()
{
RWsSession ws;
ws.Connect();
TRawEvent ev1;
ev1.Set(TRawEvent::EKeyDown, EStdKeyNo);
ws.SimulateRawEvent(ev1); // CAPABILITY Req. SwEvent
User::After(1000000);
TRawEvent ev2;
ev2.Set(TRawEvent::EKeyUp, EStdKeyNo);
ws.SimulateRawEvent(ev2); // CAPABILITY Req. SwEvent
ws.Close();
}
更多精彩
赞助商链接