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 static Variant Create(bool value) { return(new Variant(Variant_c.Constructor(MSVCR100.New(SizeOf), value))); }
public static StdString Create(string str) { byte[] bytes = Encoding.ASCII.GetBytes(str); return(new StdString(String_c.Constructor(MSVCR100.New(0x14), bytes, bytes.Length))); }