/// <summary> /// Retrieves receiver information. /// </summary> /// <returns>Returns <see cref="RadioInfo"/> retrieved information.</returns> public RadioInfo Info() { var info = new NativeDefinitions.RadioInfo2(); var ptr = Marshal.AllocHGlobal((int)info.bLength); Marshal.StructureToPtr(info, ptr, true); G313Api.GetInfo(GetHandle(), ptr); Marshal.PtrToStructure(ptr, info); Marshal.FreeHGlobal(ptr); CachedInfo = new RadioInfo(info); return(CachedInfo); }