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