How to send particular Event to External application in Symbian

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Created: kavitaobhan (19 Nov 2007)
Last edited: hamishwillee (06 Feb 2012)


#include <apacmdln.h>  
#include <apgcli.h>
#include <apgtask.h>
#include <w32std.h>

Sending the Event to the Specified application

* @param aApplicationUid  :- Uid of the Application to which the event needs to be send
* @param aEventId :- Event to be passed

void SendingEventTo( const TUid& aApplicationUid, const TUint& aEventUid )
RWsSession windowSession;
TInt err = windowSession.Connect();
if( err )
TApaTaskList apataskList( windowSession );
TApaTask apatask = apataskList.FindApp( aApplicationUid );
if( apatask.Exists() )
TInt wgId = apataskList.WgId();
TWsEvent windowEvent;
windowEvent.SetType( aEventUid );
windowSession.SendEventToWindowGroup( wgId, windowEvent );

Related Links

How to send message to a specified application  

This page was last modified on 6 February 2012, at 03:32.
31 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.