77 references to RegistryPermissionAccess
mscorlib (54)
microsoft\win32\registrykey.cs (23)
1782
private void GetSubKeyReadPermission(string subkeyName, out
RegistryPermissionAccess
access, out string path) {
1783
access =
RegistryPermissionAccess
.Read;
1786
private void GetSubKeyWritePermission(string subkeyName, out
RegistryPermissionAccess
access, out string path) {
1788
access =
RegistryPermissionAccess
.Write;
1791
private void GetSubKeyCreatePermission(string subkeyName, out
RegistryPermissionAccess
access, out string path) {
1792
access =
RegistryPermissionAccess
.Create;
1799
private void GetSubTreeReadPermission(string subkeyName, out
RegistryPermissionAccess
access, out string path) {
1800
access =
RegistryPermissionAccess
.Read;
1803
private void GetSubTreeWritePermission(string subkeyName, out
RegistryPermissionAccess
access, out string path) {
1804
access =
RegistryPermissionAccess
.Write;
1807
private void GetSubTreeReadWritePermission(string subkeyName, out
RegistryPermissionAccess
access, out string path) {
1808
access =
RegistryPermissionAccess
.Write |
RegistryPermissionAccess
.Read;
1815
private void GetValueReadPermission(string valueName, out
RegistryPermissionAccess
access, out string path) {
1816
access =
RegistryPermissionAccess
.Read;
1819
private void GetValueWritePermission(string valueName, out
RegistryPermissionAccess
access, out string path) {
1820
access =
RegistryPermissionAccess
.Write;
1823
private void GetValueCreatePermission(string valueName, out
RegistryPermissionAccess
access, out string path) {
1824
access =
RegistryPermissionAccess
.Create;
1829
private void GetKeyReadPermission(out
RegistryPermissionAccess
access, out string path) {
1830
access =
RegistryPermissionAccess
.Read;
1837
RegistryPermissionAccess
access =
RegistryPermissionAccess
.NoAccess;
system\diagnostics\eventing\eventprovider.cs (1)
544
(new RegistryPermission(
RegistryPermissionAccess
.Read, regKey)).Assert();
system\globalization\japanesecalendar.cs (1)
172
permSet.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, c_japaneseErasHivePermissionList));
system\security\accesscontrol\registrysecurity.cs (2)
155
new RegistryPermission(
RegistryPermissionAccess
.NoAccess, AccessControlActions.View, name).Demand();
240
new RegistryPermission(
RegistryPermissionAccess
.NoAccess, AccessControlActions.Change, keyName).Demand();
system\security\permissions\permissionattributes.cs (3)
583
perm.SetPathList(
RegistryPermissionAccess
.Read, m_read );
585
perm.SetPathList(
RegistryPermissionAccess
.Write, m_write );
587
perm.SetPathList(
RegistryPermissionAccess
.Create, m_create );
system\security\permissions\registrypermission.cs (20)
65
public RegistryPermission(
RegistryPermissionAccess
access, String pathList )
71
public RegistryPermission(
RegistryPermissionAccess
access, AccessControlActions control, String pathList )
78
public void SetPathList(
RegistryPermissionAccess
access, String pathList )
84
if ((access &
RegistryPermissionAccess
.Read) != 0)
87
if ((access &
RegistryPermissionAccess
.Write) != 0)
90
if ((access &
RegistryPermissionAccess
.Create) != 0)
107
AddPathList(
RegistryPermissionAccess
.NoAccess, control, pathList );
111
public void AddPathList(
RegistryPermissionAccess
access, String pathList )
117
public void AddPathList(
RegistryPermissionAccess
access, AccessControlActions control, String pathList )
121
if ((access &
RegistryPermissionAccess
.Read) != 0)
128
if ((access &
RegistryPermissionAccess
.Write) != 0)
135
if ((access &
RegistryPermissionAccess
.Create) != 0)
160
public String GetPathList(
RegistryPermissionAccess
access )
166
if ((access &
RegistryPermissionAccess
.Read) != 0)
175
if ((access &
RegistryPermissionAccess
.Write) != 0)
184
if ((access &
RegistryPermissionAccess
.Create) != 0)
198
private void VerifyAccess(
RegistryPermissionAccess
access )
200
if ((access & ~
RegistryPermissionAccess
.AllAccess) != 0)
204
private void ExclusiveAccess(
RegistryPermissionAccess
access )
206
if (access ==
RegistryPermissionAccess
.NoAccess)
system\timezoneinfo.cs (4)
930
permSet.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, c_timeZonesRegistryHivePermissionList));
1429
permSet.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, c_timeZonesRegistryHivePermissionList));
2484
permSet.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, c_timeZonesRegistryHivePermissionList));
2769
permSet.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, c_timeZonesRegistryHivePermissionList));
PresentationCore (7)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
101
RegistryPermissionAccess
.Read,
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
181
RegistryPermissionAccess
.Read,
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
382
permissionSet.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read,
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
386
new RegistryPermission(
RegistryPermissionAccess
.Read, c_devmodeRegKeyFullPath).Assert();
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
1056
RegistryPermissionAccess
.Read,
Shared\MS\Internal\SafeSecurityHelper.cs (2)
381
RegistryPermission regPerm = new RegistryPermission(
RegistryPermissionAccess
.Read,"HKEY_LOCAL_MACHINE\\"+RegistryKeys.WPF_Features);//BlessedAssert
442
RegistryPermission regPerm = new RegistryPermission(
RegistryPermissionAccess
.Read, RegistryKeys.HKLM_IetfLanguage);//BlessedAssert
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (1)
153
(new RegistryPermission(
RegistryPermissionAccess
.Read, KILL_BIT_REGISTRY_HIVE + KILL_BIT_REGISTRY_LOCATION)).Assert();//BlessedAssert
src\Framework\System\Windows\Application.cs (1)
2613
permissions.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, SYSTEM_SOUNDS_REGISTRY_BASE));
src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
381
RegistryPermission regPerm = new RegistryPermission(
RegistryPermissionAccess
.Read,"HKEY_LOCAL_MACHINE\\"+RegistryKeys.WPF_Features);//BlessedAssert
System (1)
sys\system\io\ports\SerialPort.cs (1)
676
RegistryPermission registryPermission = new RegistryPermission(
RegistryPermissionAccess
.Read,
System.Data (2)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
2185
(new RegistryPermission(
RegistryPermissionAccess
.Read, "HKEY_CLASSES_ROOT\\" + subkey)).Assert(); // MDAC 62028
2205
(new RegistryPermission(
RegistryPermissionAccess
.Read, "HKEY_LOCAL_MACHINE\\" + subkey)).Assert(); // MDAC 62028
System.Web (1)
Configuration\serverconfig.cs (1)
81
new RegistryPermission(
RegistryPermissionAccess
.Read, "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\InetStp").Assert();
WindowsBase (9)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
220
RegistryPermissionAccess
.Read,
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
945
RegistryPermissionAccess
.Read,
Shared\MS\Internal\Invariant.cs (1)
309
RegistryPermission regPerm = new RegistryPermission(
RegistryPermissionAccess
.Read, "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\.NetFramework");
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
555
permissionSet.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read,
Shared\MS\Internal\Registry.cs (1)
50
new RegistryPermission(
RegistryPermissionAccess
.Read, keyPath).Assert();
Shared\MS\Internal\SecurityHelper.cs (1)
1395
new RegistryPermission(
RegistryPermissionAccess
.Read, baseRegistryKey.Name + @"\" + keyName).Assert();
Shared\MS\Internal\TextServicesLoader.cs (2)
213
ps.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CTF"));
214
ps.AddPermission(new RegistryPermission(
RegistryPermissionAccess
.Read, "HKEY_CURRENT_USER\\Software\\Microsoft\\CTF"));
Shared\MS\Utility\Trace.cs (1)
155
new RegistryPermission(
RegistryPermissionAccess
.Read, regKey).Assert();