May 15, 2024, 11:19:31 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


System time/date

Started by paja, August 12, 2009, 02:46:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paja

How can I set system time/date in windows from an Ebasic program ?

ZeroDog


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