/// <summary> /// Default constructor for an Effect. /// </summary> protected Effect() { // Effects are never allowed in partial trust scenarios. So demand // UIWindow permission immediately in the ctor and get it // over with. SecurityHelper.DemandUIWindowPermission(); }
protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect) { SecurityHelper.DemandUIWindowPermission(); }
public static Cursor Create(SafeHandle cursorHandle) { SecurityHelper.DemandUIWindowPermission(); return(CriticalCreate(cursorHandle)); }