IonicWind Software

IWBasic => General Questions => Topic started by: paja on August 12, 2009, 02:46:29 PM

Title: System time/date
Post by: paja on August 12, 2009, 02:46:29 PM
How can I set system time/date in windows from an Ebasic program ?
Title: Re: System time/date
Post by: ZeroDog on August 12, 2009, 02:58:00 PM

TYPE SYSTEMTIME
DEF wYear:INT
DEF wMonth:INT
DEF wDayOfWeek:INT
DEF wDay:INT
DEF wHour:INT
DEF wMinute:INT
DEF wSecond:INT
DEF wMilliseconds:INT
ENDTYPE

Declare IMPORT, SetSystemTime  (lpSystemTime As SYSTEMTIME),INT



Create a variable of the UDT SYSTEMTIME, fill it in, and pass it to the SetSystemTime  function