Returns a list of objects containing info about all currently running services in the background.
app.GetRunningServices() →
list: of objects: [{
user,
pid,
name }]
See Also: GetRunningApps, GetInstalledApps
Example - Show Running Services
function OnStart()
{
app.ShowProgress();
var lay = app.CreateLayout( "linear", "fillxy,vcenter" );
lst = app.CreateList( "", .9, .9 );
lst.SetTextSize1( 15 );
lay.AddChild( lst );
var list = app.GetRunningServices();
for( var i in list )
{
var a = list[i];
var body =
"user: " + a.user +
"\npid: " + a.pid;
lst.AddItem( a.name, body );
}
app.AddLayout( lay );
app.HideProgress();
}