197 references to SecurityHelper
PresentationCore (197)
Core\CSharp\MS\Internal\AppModel\CookieHandler.cs (2)
126SecurityHelper.DemandWebPermission(uri); 155SecurityHelper.DemandWebPermission(uri);
Core\CSharp\MS\Internal\AppModel\SiteOfOriginPart.cs (1)
153if (SecurityHelper.AreStringTypesEqual(_absoluteLocation.Scheme, Uri.UriSchemeFile))
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (2)
217SecurityHelper.CreateUriDiscoveryPermission(criticalSxSFontsLocation).Assert(); 430SecurityHelper.DemandUriReadPermission(folderUri);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
910if (!SecurityHelper.CallerHasPathDiscoveryPermission(fileName))
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
413SecurityHelper.DemandUriReadPermission(_fontUri);
Core\CSharp\MS\Internal\FontFace\FontDriver.cs (1)
277SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\IO\Packaging\PackageStore.cs (2)
21using SecurityHelper=MS.Internal.SecurityHelper; 206SecurityHelper.DemandEnvironmentPermission();
Core\CSharp\System\Windows\Clipboard.cs (7)
175SecurityHelper.ThrowExceptionForHR(hr); 406SecurityHelper.DemandAllClipboardPermission(); 480SecurityHelper.DemandAllClipboardPermission(); 511SecurityHelper.DemandAllClipboardPermission(); 567SecurityHelper.DemandUnmanagedCode(); 745PermissionSet permissionSetDestination = SecurityHelper.ExtractAppDomainPermissionSetMinusSiteOfOrigin(); 832SecurityHelper.DemandAllClipboardPermission();
Core\CSharp\System\Windows\DataFormats.cs (2)
25using SecurityHelper=MS.Internal.SecurityHelper; 116SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\DataObject.cs (24)
73SecurityHelper.DemandAllClipboardPermission(); 87SecurityHelper.DemandAllClipboardPermission(); 126SecurityHelper.DemandAllClipboardPermission(); 157SecurityHelper.DemandAllClipboardPermission(); 181SecurityHelper.DemandAllClipboardPermission(); 380SecurityHelper.DemandAllClipboardPermission(); 399SecurityHelper.DemandAllClipboardPermission(); 429SecurityHelper.DemandAllClipboardPermission(); 458SecurityHelper.DemandAllClipboardPermission(); 837if ( SecurityHelper.CheckUnmanagedCodePermission() ) 955SecurityHelper.DemandAllClipboardPermission(); 1321SecurityHelper.DemandUnmanagedCode(); 1442if (SecurityHelper.CheckUnmanagedCodePermission()) 1595SecurityHelper.DemandUnmanagedCode(); 2518SecurityHelper.DemandUnmanagedCode(); 2833SecurityHelper.DemandAllClipboardPermission(); 2934SecurityHelper.DemandUnmanagedCode(); 2969SecurityHelper.DemandAllClipboardPermission(); 3025SecurityHelper.DemandAllClipboardPermission(); 3176SecurityHelper.DemandFilePathDiscoveryWriteRead(); 3181SecurityHelper.DemandFilePathDiscoveryWriteRead(); 3186SecurityHelper.DemandFilePathDiscoveryWriteRead(); 3883|| !SecurityHelper.CallerHasSerializationPermission()) 3908if (!SecurityHelper.CallerHasSerializationPermission())
Core\CSharp\System\Windows\DragDrop.cs (3)
394SecurityHelper.DemandUnmanagedCode(); 486if (SecurityHelper.CheckUnmanagedCodePermission() && windowHandle != IntPtr.Zero) 514if (SecurityHelper.CheckUnmanagedCodePermission() && windowHandle != IntPtr.Zero)
Core\CSharp\System\Windows\Ink\GestureRecognizer.cs (2)
25using SecurityHelper=MS.Internal.SecurityHelper; 170SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (1)
63SecurityHelper.DemandUnrestrictedUIPermission();
Core\CSharp\System\Windows\Input\Cursor.cs (2)
11using SecurityHelper=MS.Internal.SecurityHelper; 203SecurityHelper.DemandFileIOReadPermission(fileName);
Core\CSharp\System\Windows\Input\DefaultTextStore.cs (2)
160SecurityHelper.DemandUnmanagedCode(); 311SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Input\InputManager.cs (2)
360SecurityHelper.DemandUnrestrictedUIPermission(); 398SecurityHelper.DemandUnrestrictedUIPermission();
Core\CSharp\System\Windows\Input\InputMethod.cs (5)
685SecurityHelper.DemandUnrestrictedUIPermission(); 778SecurityHelper.DemandUnrestrictedUIPermission(); 1625SecurityHelper.DemandUnrestrictedUIPermission(); 1687SecurityHelper.DemandUnrestrictedUIPermission(); 1792SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Input\InputProviderSite.cs (1)
42SecurityHelper.DemandUnrestrictedUIPermission();
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (3)
106SecurityHelper.DemandUnrestrictedUIPermission(); 318SecurityHelper.DemandUnrestrictedUIPermission(); 332SecurityHelper.DemandUnrestrictedUIPermission();
Core\CSharp\System\Windows\Input\KeyEventArgs.cs (1)
66SecurityHelper.DemandUnrestrictedUIPermission();
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (1)
80SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Input\MouseDevice.cs (1)
237SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Input\NotifyInputEventArgs.cs (1)
56SecurityHelper.DemandUnrestrictedUIPermission();
Core\CSharp\System\Windows\Input\ProcessInputEventArgs.cs (2)
120SecurityHelper.DemandUnrestrictedUIPermission(); 147SecurityHelper.DemandUnrestrictedUIPermission();
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
152SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Input\Win32KeyboardDevice.cs (1)
67else if (SecurityHelper.AppDomainGrantedUnrestrictedUIPermission)
Core\CSharp\System\Windows\Interop\CursorInteropHelper.cs (2)
18using SecurityHelper=MS.Internal.SecurityHelper; 52SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Interop\D3DImage.cs (3)
88SecurityHelper.DemandUnmanagedCode(); 169SecurityHelper.DemandUnmanagedCode(); 579SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (1)
125if (SecurityHelper.AppDomainGrantedUnrestrictedUIPermission)
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
265SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Interop\HwndSource.cs (13)
94SecurityHelper.DemandUIWindowPermission(); 161SecurityHelper.DemandUIWindowPermission(); 225SecurityHelper.DemandUIWindowPermission(); 387SecurityHelper.CallerHasPermissionWithAppDomainOptimization(new SecurityPermission(SecurityPermissionFlag.UnmanagedCode))) 424SecurityHelper.DemandUIWindowPermission(); 452SecurityHelper.DemandUIWindowPermission(); 773SecurityHelper.DemandUIWindowPermission(); 1093SecurityHelper.DemandUIWindowPermission(); 2240SecurityHelper.DemandUnmanagedCode(); 2318SecurityHelper.DemandUnmanagedCode(); 2325SecurityHelper.DemandUnmanagedCode(); 2367SecurityHelper.DemandUnmanagedCode(); 2470SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Interop\Imaging.cs (3)
47SecurityHelper.DemandUnmanagedCode(); 99SecurityHelper.DemandUnmanagedCode(); 134SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
305SecurityHelper.DemandPathDiscovery(uri.LocalPath);
Core\CSharp\System\Windows\Media\Effects\BevelBitmapEffect.cs (1)
67SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\Effects\BitmapEffect.cs (4)
58SecurityHelper.DemandUIWindowPermission(); 112SecurityHelper.DemandUIWindowPermission(); 127SecurityHelper.DemandUIWindowPermission(); 145SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\Effects\BlurBitmapEffect.cs (1)
67SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\Effects\DropShadowBitmapEffect.cs (2)
15using SecurityHelper=MS.Internal.SecurityHelper; 63SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\Effects\Effect.cs (2)
14using SecurityHelper=MS.Internal.SecurityHelper; 72SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\Effects\EmbossBitmapEffect.cs (2)
15using SecurityHelper=MS.Internal.SecurityHelper; 63SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\Effects\OuterGlowBitmapEffect.cs (1)
67SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (1)
140SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (6)
118SecurityHelper.CreateUriReadPermission(typefaceSource) 157SecurityHelper.CreateUriReadPermission(fontSourceUri) 185SecurityHelper.DemandUriDiscoveryPermission(typefaceSource); 287SecurityHelper.DemandUnmanagedCode(); 367return SecurityHelper.CreateUriDiscoveryPermission(_originalUri.Value); 398SecurityHelper.DemandUriDiscoveryPermission(_originalUri.Value);
Core\CSharp\System\Windows\Media\Imaging\BitmapCodecInfo.cs (12)
75SecurityHelper.DemandRegistryPermission(); 105SecurityHelper.DemandRegistryPermission(); 157SecurityHelper.DemandRegistryPermission(); 209SecurityHelper.DemandRegistryPermission(); 261SecurityHelper.DemandRegistryPermission(); 313SecurityHelper.DemandRegistryPermission(); 365SecurityHelper.DemandRegistryPermission(); 417SecurityHelper.DemandRegistryPermission(); 469SecurityHelper.DemandRegistryPermission(); 521SecurityHelper.DemandRegistryPermission(); 551SecurityHelper.DemandRegistryPermission(); 581SecurityHelper.DemandRegistryPermission();
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (11)
1128SecurityHelper.DemandMediaPermission(MediaPermissionAudio.NoAudio, 1135SecurityHelper.DemandMediaPermission(MediaPermissionAudio.NoAudio, 1181SecurityHelper.DemandMediaPermission(MediaPermissionAudio.NoAudio, 1202int targetZone = SecurityHelper.MapUrlToZoneWrapper(uri); 1351SecurityHelper.DemandUnmanagedCode(); 1378SecurityHelper.BlockCrossDomainForHttpsApps(uri); 1404SecurityHelper.BlockCrossDomainForHttpsApps(uri); 1412if (SecurityHelper.CallerHasMediaPermission(MediaPermissionAudio.NoAudio, 1450SecurityHelper.EnforceUncContentAccessRules(uri); 1456if (SecurityHelper.CallerHasMediaPermission(MediaPermissionAudio.NoAudio, 1503SecurityHelper.DemandMediaAccessPermission(uri);
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (2)
218SecurityHelper.BlockCrossDomainForHttpsApps(uri); 223if (SecurityHelper.CallerHasMediaPermission(MediaPermissionAudio.NoAudio,
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (2)
106SecurityHelper.DemandUnmanagedCode(); 852SecurityHelper.DemandMediaAccessPermission(uri);
Core\CSharp\System\Windows\Media\Imaging\InteropBitmapSource.cs (4)
50SecurityHelper.DemandUnmanagedCode(); 105SecurityHelper.DemandUnmanagedCode(); 151SecurityHelper.DemandUnmanagedCode(); 350SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
193SecurityHelper.DemandRegistryPermission();
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (3)
409SecurityHelper.DemandUnmanagedCode(); 501SecurityHelper.DemandUnmanagedCode(); 1587SecurityHelper.DemandUnmanagedCode();
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (11)
920SecurityHelper.CallerHasMediaPermission(MediaPermissionAudio.AllAudio, MediaPermissionVideo.AllVideo, MediaPermissionImage.NoImage), 975Uri appBase = SecurityHelper.GetBaseDirectory(AppDomain.CurrentDomain); 984if (SecurityHelper.AreStringTypesEqual(uriToOpen.Scheme, Uri.UriSchemeHttps)) 987Uri appDeploymentUri = SecurityHelper.ExtractUriForClickOnceDeployedApp(); 988if (!SecurityHelper.AreStringTypesEqual(appDeploymentUri.Scheme, Uri.UriSchemeHttps)) 1036SecurityHelper.DemandMediaPermission(MediaPermissionAudio.AllAudio, 1071int targetZone = SecurityHelper.MapUrlToZoneWrapper(absoluteUri); 1091SecurityHelper.EnforceUncContentAccessRules(absoluteUri); 1095if (!SecurityHelper.CallerHasMediaPermission(MediaPermissionAudio.SafeAudio, 1111SecurityHelper.BlockCrossDomainForHttpsApps(absoluteUri); 1112if (!SecurityHelper.CallerHasMediaPermission(MediaPermissionAudio.SafeAudio,
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (13)
219return SecurityHelper.GetHRForException(e); 242return SecurityHelper.GetHRForException(e); 307return SecurityHelper.GetHRForException(e); 327return SecurityHelper.GetHRForException(e); 352return SecurityHelper.GetHRForException(e); 372return SecurityHelper.GetHRForException(e); 452return SecurityHelper.GetHRForException(e); 474return SecurityHelper.GetHRForException(e); 503return SecurityHelper.GetHRForException(e); 523return SecurityHelper.GetHRForException(e); 551return SecurityHelper.GetHRForException(e); 575return SecurityHelper.GetHRForException(e); 599return SecurityHelper.GetHRForException(e);
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (6)
178SecurityHelper.AreStringTypesEqual(uri.Scheme, PackUriHelper.UriSchemePack) && 181SecurityHelper.AreStringTypesEqual( 201Debug.Assert(uri != null && uri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(uri.Scheme, PackUriHelper.UriSchemePack) && IsPackApplicationUri(uri)); 408Invariant.Assert(packUri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(packUri.Scheme, PackAppBaseUri.Scheme)); 429if (uri != null && uri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(uri.Scheme, Uri.UriSchemeFile) && 669SecurityHelper.DemandUriDiscoveryPermission(baseUri);
Core\CSharp\System\Windows\PresentationSource.cs (3)
112SecurityHelper.DemandUIWindowPermission(); 132SecurityHelper.DemandUIWindowPermission(); 449SecurityHelper.DemandUIWindowPermission();
Core\CSharp\System\Windows\RoutedEventArgs.cs (1)
361return SecurityHelper.CallerHasUserInitiatedRoutedEventPermission();
Core\CSharp\System\Windows\SourceChangedEventArgs.cs (2)
85SecurityHelper.DemandUIWindowPermission(); 106SecurityHelper.DemandUIWindowPermission();
Shared\MS\Internal\SecurityHelper.cs (8)
95SecurityHelper.DemandUnmanagedCode(); 475Uri appUri = SecurityHelper.ExtractUriForClickOnceDeployedApp(); 483int appZone = SecurityHelper.MapUrlToZoneWrapper(appUri); 641SecurityHelper.DemandAllClipboardPermission(); 682SecurityHelper.DemandEnvironmentPermission(); 1244CodeAccessPermission casPermission= SecurityHelper.CreateMediaAccessPermission(uri); 1280if(!SecurityHelper.CallerHasWebPermission(new Uri(uri,UriKind.RelativeOrAbsolute))) 1315SecurityHelper.DemandWebPermission(uri);
Shared\MS\Utility\BindUriHelper.cs (2)
95return (SecurityHelper.AreStringTypesEqual(first.Scheme, second.Scheme) && first.Host.Equals(second.Host) == true); 173if (SecurityHelper.AreStringTypesEqual(sourceUri.Scheme, destinationUri.Scheme))