public GroupSDK.TEMP_STATE GetFrameStatisticalData() { int size = (int)Marshal.SizeOf(typeof(GroupSDK.TEMP_STATE)); IntPtr ptr = GroupSDK.MAG_GetFrameStatisticalData(m_intChannelIndex); GroupSDK.TEMP_STATE state = (GroupSDK.TEMP_STATE)Marshal.PtrToStructure(ptr, typeof(GroupSDK.TEMP_STATE)); return(state); }