예제 #1
0
파일: Effect.cs 프로젝트: sososu/wpf
 /// <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();
 }
예제 #2
0
 protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect)
 {
     SecurityHelper.DemandUIWindowPermission();
 }
예제 #3
0
        public static Cursor Create(SafeHandle cursorHandle)
        {
            SecurityHelper.DemandUIWindowPermission();

            return(CriticalCreate(cursorHandle));
        }