public ActiveFileInfo GetActiveFileInfo() { AS_ActiveFileInfo asAfi = new AS_ActiveFileInfo(); GetActiveFileInfo(ref asAfi); return(new ActiveFileInfo() { StartTime = Marshal.PtrToStringAnsi(asAfi.StartTime), EndTime = Marshal.PtrToStringAnsi(asAfi.EndTime), Platform = Marshal.PtrToStringAnsi(asAfi.Platform), SdkType = Marshal.PtrToStringAnsi(asAfi.SdkType), AppId = Marshal.PtrToStringAnsi(asAfi.AppId), SdkKey = Marshal.PtrToStringAnsi(asAfi.SdkKey), SdkVersion = Marshal.PtrToStringAnsi(asAfi.SdkVersion), FileVersion = Marshal.PtrToStringAnsi(asAfi.FileVersion) }); }
internal static extern long GetActiveFileInfo(ref AS_ActiveFileInfo asActiveFileInfo);