This is relatively straight forward:
Get a Call library function (from the advanced menu).
Right click and go to configure.
A pannel will appear, starting at the top:
Library: C:\windows\system\kernel32.DLL
Function name : SetSystemTime
Calling convention : StdCall (WINAPI)
Below this there will be a parameter called Return - rename this ERROR.
Set the parameter details to Numeric and Signed 32bit Integer. If the returned value is NON zero, the command was successfull.
Click Add Parameter.
A new parameter will appear called arg1 - rename this to SYSTEMTIME.
Set the type to 'Adapt to type', and the value to 'Handles by Value'.
Finally, set the function to be REENTRANT (top right listbox).
You can now press OK.
The Call Library function will have changed to refle
ct the configuration.
The SYSTEMTIME variable is a cluster of 8 signed 16bit integers. To set the time, the values should be as follows:
Year (yyyy)
month
Day of week (ignored - windows decides this)
Day
Hours
Minutes
Seconds
Milliseconds
Happy programming
Chris