- Refer to :
The IntPtr type is designed to be an integer whose size is
platform-specific. That is, an instance of this type is expected to be
32-bits on 32-bit hardware and operating systems, and 64-bits on 64-bit
hardware and operating systems.
Change-Id: Iec76f352e76d3af11c077eafe81894cc969e8382
Signed-off-by: inkyun.kil <inkyun.kil@samsung.com>
internal IntPtr pkgName;
internal IntPtr appPath;
internal IntPtr arg;
- internal long launchTime;
+ internal IntPtr launchTime;
internal IntPtr instanceId;
internal IntPtr instanceName;
internal IntPtr icon;
InstanceName = Marshal.PtrToStringAnsi(record.instanceName);
Arg = Marshal.PtrToStringAnsi(record.arg);
Uri = Marshal.PtrToStringAnsi(record.uri);
- LaunchTime = new DateTime(1970, 1, 1).AddSeconds(record.launchTime);
+ long seconds = record.launchTime.ToInt64();
+ LaunchTime = new DateTime(1970, 1, 1).AddSeconds(seconds);
Controller = new RecentApplicationControl(Marshal.PtrToStringAnsi(record.pkgName));
}
}