- InformationError ret = Interop.RuntimeInfo.SetRuntimeInfoChangedCallback(TvProductHelper.ConvertKeyIfTvProduct(Key), RuntimeInformationChangedCallback, IntPtr.Zero);
+ __callback = (RuntimeInfoKey num, IntPtr userData) =>
+ {
+ string strKey = "Invalid";
+ RuntimeInfoKey key = TvProductHelper.ReconvertKeyIfTvProduct(num);
+
+ if (key > 0 && Information.EnumStringMapping.ContainsKey(key))
+ {
+ strKey = Information.EnumStringMapping[key];
+ }
+
+ RuntimeFeatureStatusChangedEventArgs eventArgs = new RuntimeFeatureStatusChangedEventArgs()
+ {
+ Key = Information.HttpPrefix + Information.RuntimeInfoStringKeyPrefix + strKey
+ };
+
+ Handler?.Invoke(null, eventArgs);
+ };
+
+ InformationError ret = Interop.RuntimeInfo.SetRuntimeInfoChangedCallback(TvProductHelper.ConvertKeyIfTvProduct(Key), __callback, IntPtr.Zero);