public static void RegisterServer(Type type) { // Create a new registry tools object RegistryTools registry = new RegistryTools() { Hive = PluginHive }; // This is a 32-bit plugin, so determine if the target // key needs to access a WoW emulation key string key = String.Format( @"{0}\{1}", ((Platform.GetPlatform() == PlatformType.X64) ? PluginKeyWow : PluginKey), PluginGuid ); // Loop through each of the plugin settings and add // them to the registry foreach (var setting in PluginSettings) { registry.WriteValue( key, setting.Key, setting.Value, RegistryValueKind.String ); } }