public static Variant GetDValue(string name, bool unk) { StdString nameStr = StdString.Create(name); IntPtr dval = DistributedValue_c.GetDValue(MSVCR100.New(Variant.SizeOf), nameStr.Pointer, unk); return(dval == IntPtr.Zero ? null : Variant.FromPointer(dval)); }
public string AsString() { StdString str = StdString.Create(); Variant_c.AsString(Pointer, str.Pointer); return(str.ToString()); }
public override string ToString() { StdString str = StdString.Create(); Variant_c.SaveToString(Pointer, str.Pointer); return(str.ToString()); }
public static void SaveConfig(string path, int category) { StdString pathStr = StdString.Create(path); DistributedValue_c.SaveConfig(pathStr.Pointer, category); }
public static void LoadConfig(string path, int category, bool addVariables) { StdString pathStr = StdString.Create(path); DistributedValue_c.LoadConfig(pathStr.Pointer, category, addVariables); }
public static void SetDValue(string name, Variant value) { StdString nameStr = StdString.Create(name); DistributedValue_c.SetDValue(nameStr.Pointer, value.Pointer); }
public static void Create(string name, Variant value) { StdString nameStr = StdString.Create(name); DistributedValue_c.AddVariable(nameStr.Pointer, value.Pointer, false, false); }