using JetBrains.Annotations; namespace VirtualPrinter.Agent.Core { public interface IRegistryRepository { /// /// Try to get the ghostscript path from. /// /// True if the path exists. [ContractAnnotation("=>true,path:notnull; =>false,path:null")] bool TryGetGhostscriptPath(out string path); /// /// Get the from the registry. /// /// The configuration that was read from the registry in HKEY_LOCAL_MACHINE\SOFTWARE. [NotNull] IExConfig GetRegistryConfig(); /// /// Get the from the registry. /// /// The security identifier with which each Windows user can be clearly identified in the network. /// The configuration that was read from the registry in HKEY_USERS [NotNull] IUserConfig GetUserRegistryConfig([NotNull]string sid); } }