123456789101112131415161718192021222324252627 |
- using System.Runtime.InteropServices;
- using System.Text;
- namespace WingAIDiagnosisService.URMManage
- {
- public class NativeProxy
- {
- [DllImport("VCL.dll", CharSet = CharSet.Ansi, EntryPoint = "UpdateSection")]
- private static extern void UpdateSectionImpl(string section, string key, string value);
- [DllImport("VCL.dll", CharSet = CharSet.Ansi)]
- public static extern void GetValue(string section, string key, StringBuilder lpString, int maxCount);
- public static void UpdateSection(string section, string key, string value, bool logit = true)
- {
- // Logger.ForceWriteLineIf(logit, "UpdateSection({0}.{1}: {2})", section, key, value);
-
- // var resourceManager = (ResourceManagerImpl)ResourceManager.Manager;
- // resourceManager.UpdateDefaultValue(section, key, value);
- UpdateSectionImpl(section, key, value);
- }
- }
- }
|