WORD wYear WORD wMonth WORD wDayOfWeek WORD wDay WORD wHour WORD wMinute WORD wSecond WORD wMillisecondsA WORD is an unsigned 16 bit binary number ordered
FUNCTION NumToWord LPARAMETER nNumBerToConvert RETURN CHR(MOD(nNumberToConvert,256)) + CHR(INT(nNumberToConvert/256))You could then make your SYSTEM_TIME structure:
lcSystime> = NumToWord(1998) + ;
NumToWord(1) + ;
NumToWord(DOW({^ 1998 01 01})) + ;
NumToWord(1) + ;
NumToWord(0) + ;
NumToWord(0) + ;
NumToWord(0) + ;
NumToWord(1)
which would be midnight + 1 millisecond, January 1 1998.
>
>DECLARE SHORT SetLocalTime IN Win32API;
> STRING @lpst
>? SetLocalTime(@lcsystime) && returns 0EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater
NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC
The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys