Problem with Delphi Function Se tDate Time Computer
Posted: Sat Jun 09, 2018 7:17 pm
We have a function to change computer system date time with Delphi
But we dont understand why after protect the executable the function dont works
Thats the function:
procedure TDmPrincipal.SynchronizeDh;
var
SystemTime: TSystemTime;
begin
FDhSynchronized := False;
DateTimeToSystemTime(GetCurrentDateTime, SystemTime);
FDhSynchronized := SetLocalTime(SystemTime);
end;
Its possible to be any influence of Enigma. Because the function use Windows API SetLocalTime function?
Thank you all folks!!
But we dont understand why after protect the executable the function dont works
Thats the function:
procedure TDmPrincipal.SynchronizeDh;
var
SystemTime: TSystemTime;
begin
FDhSynchronized := False;
DateTimeToSystemTime(GetCurrentDateTime, SystemTime);
FDhSynchronized := SetLocalTime(SystemTime);
end;
Its possible to be any influence of Enigma. Because the function use Windows API SetLocalTime function?
Thank you all folks!!