os/commsfw/commsconfig/commsdatabaseshim/commdbshim/Notifier

c\s结构,server为独立进程


ShimNotifierCli.dll  client

RCommsdatNotifier





=============================================





ShimNotifierSvr.exe  server

CCommsdatNotifierServer

1.启动

void InitL()
	{
	RProcess().SetPriority(EPriorityHigh);
	CCommsdatNotifierScheduler* pA = new(ELeave) CCommsdatNotifierScheduler();
	CActiveScheduler::Install(pA);
	pA->iServer = CCommsdatNotifierServer::NewL();	
	}

/**
CCommsdatNotifier server process entry point
*/
TInt E32Main()
	{
	__UHEAP_MARK;	
	TInt ret = KErrNone;
	
	CTrapCleanup* cleanup=CTrapCleanup::New();
	if (cleanup==NULL)
		{
		ret=KErrNoMemory;	
		}		

	if (ret==KErrNone)
		{
		TRAP(ret,InitL());	
		}		

	RProcess::Rendezvous(ret);
	
	if (ret==KErrNone)
		{
		CActiveScheduler::Start();	
		}
		

	delete CActiveScheduler::Current();
	delete cleanup;
	
	__UHEAP_MARKEND;

	return ret;
	}
	


你可能感兴趣的:(os/commsfw/commsconfig/commsdatabaseshim/commdbshim/Notifier)