//FROM INDY IDGlobal.Pas
//Works just fine. Remember that if the user has rights to set the time this
//will work. if they dont, then launching the time app wont let them do it //either
function SetLocalTime(Value: TDateTime): boolean;
var
  SysTimeVar: TSystemTime;
begin
  DateTimeToSystemTime(Value, SysTimeVar);
  Result := Windows.SetLocalTime(SysTimeVar);
end;

-----Original Message-----
From: Rohit Gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 8 January 2003 11:42 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Set System Date


Is there any way to set the system date and time from the app ?  
The winapi talks about access rights on NT+ systems....

Failing that, is there a way to fire up the windows settime appelet ?
Regards

Rohit

====================================================
==================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New 
Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
====================================================
==================


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to