Get Whitelist using code (Ranorex 8.2)

Class library usage, coding and language questions.
KevinSer
Posts: 2
Joined: Tue Apr 24, 2018 10:02 am

Get Whitelist using code (Ranorex 8.2)

Post by KevinSer » Thu Sep 06, 2018 9:31 am

Hi !

Is it possible to get an access to the processes whitelist using code?

Thanks,
Kevin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Get Whitelist using code (Ranorex 8.2)

Post by Support Team » Fri Sep 07, 2018 11:30 am

Hello Kevin,

Yes, this is possible by using this code:
var WhitelistedProcessArray = Ranorex.Core.Configuration.Current.Plugins.Win32.WhitelistedProcesses;

foreach(var process in WhitelistedProcessArray)
{
	Report.Info(process.ToString());				
}
Sincerely,
Bernhard
.
Image