protected unsafe void Set(IntPtr guid, string value) { var prop = new PropertyString { Text = value }; var propNative = new PropertyString.__Native(); prop.__MarshalTo(ref propNative); InitHeader <PropertyString.__Native>(ref propNative.Header); Device.SetProperty(guid, new IntPtr(&propNative)); }