trunk/src/LythumOSL.Core/RegistryAccess.cs
/// <summary>
/// Gets system registry key
/// If key is unknown then like default will be returned current user
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
Gets system registry key
If key is unknown then like default will be returned current user
Gets system registry key If key is unknown then like default will be returned current user
public static RegistryKey GetSystemKey(RegistrySettingsType type)
		{
			switch (type)
			{
				case RegistrySettingsType.ClassesRoot:
					return Registry.ClassesRoot;
				case RegistrySettingsType.CurrentConfig:
					return Registry.CurrentConfig;
				default:
				case RegistrySettingsType.CurrentUser:
					return Registry.CurrentUser;
				case RegistrySettingsType.DynData:
					return Registry.DynData;
				case RegistrySettingsType.LocalMachine:
					return Registry.LocalMachine;
				case RegistrySettingsType.PerformanceData:
					return Registry.PerformanceData;
				case RegistrySettingsType.Users:
					return Registry.Users;
			}
		}
public static RegistryKey GetSystemKey ( RegistrySettingsType type ) { switch ( type ) { case RegistrySettingsType . ClassesRoot : return Registry . ClassesRoot ; case RegistrySettingsType . CurrentConfig : return Registry . CurrentConfig ; default : case RegistrySettingsType . CurrentUser : return Registry . CurrentUser ; case RegistrySettingsType . DynData : return Registry . DynData ; case RegistrySettingsType . LocalMachine : return Registry . LocalMachine ; case RegistrySettingsType . PerformanceData : return Registry . PerformanceData ; case RegistrySettingsType . Users : return Registry . Users ; } }
Gets system registry key
If key is unknown then like default will be returned current user
Gets system registry key If key is unknown then like default will be returned current user
None
type
RegistrySettingsType
None