I am able to read the start time from my Win7 computer.
public static DateTime WindowsStartTime()
{
DateTime dt = new DateTime();
try
{
dt = DateTime.Now - new TimeSpan(0, 0, 0, 0, System.Environment.TickCount);
return dt;
}
catch (Exception ex)
{
return dt;
}
}
Unfortunately, this code is not working on Win10 computer. Does someone have an idea why this is not working ?