First, we need to declare the external function, called SetLocalTime from kernel32.dll
FUNCTION long SetLocalTime(ref str_SYSTEMTIME lpSystemTime ) LIBRARY "kernel32.dll" alias for "SetLocalTimeA"
To use the function, just pass a datetime variable when you call the function.
Example:
DataTime dtToday
dtToday = DateTime(Today(),Now())
SetLocalTime(dtToday)
Great post which explains us how we can go for powerbuilding applications
ReplyDeletedoes not work the lpSystemTime must be a structure
ReplyDelete