public static void Finalize(IntPtr data)
        {
            GenericMeasure measure = (GenericMeasure)GCHandle.FromIntPtr(data).Target;

            measure.Dispose();
            GCHandle.FromIntPtr(data).Free();
        }
        public static double Update(IntPtr data)
        {
            GenericMeasure measure = (GenericMeasure)GCHandle.FromIntPtr(data).Target;

            return(measure.Update());
        }
        public static void Reload(IntPtr data, IntPtr rm, ref double maxValue)
        {
            GenericMeasure measure = (GenericMeasure)GCHandle.FromIntPtr(data).Target;

            measure.Reload(new Rainmeter.API(rm), ref maxValue);
        }