int GetTrustLevels (string)

Gets a mask of the scripting ACL trust levels for the calling frame

Security

Trust Level Required: None

Parameters

Name Description
url (Optional) string
The URL from which to check the trust level flags. Defaults to null.

Return

Trust level mask that you can use to check for trust level flags.

Remarks

The Trust Levels Flags are: Low = 1, Medium = 2, High = 4.
Surrouding scripts with this check will prevent the Scripting ACL error message.

Examples


var trustLevel = KioFrame.GetTrustLevels('https://m.kioware.com');
if(trustLevel == 4)
{
	//the calls in this script require the page to have full trust.
	var pid = KioUtils.Execute('notepad.exe');
	var wnd = null;
	while (!wnd) {
	   wnd = KioUtils.GetProcMainWnd(pid);
	}
	KioUtils.BringWndToFront(wnd);
}
    

Requirements

KioWare for Windows version 8.1 or greater.