示例#1
0
oexINT CService::Run( CStr x_sModule, CStr x_sCommandLine, oexCPVOID x_pData, oexGUID *x_pguidType, oexINT x_nIdleDelay, oexINT x_nFlags )
{
	// Fork the process, return if parent or failure
	if ( oexINT nRet = oexFork( x_sModule.GetPath().Ptr() ) )
		return nRet;

	// *** We're in the child fork() now...

	return RunModule( x_sModule, x_sCommandLine, x_pData, x_pguidType, x_nIdleDelay, x_nFlags );
}