Posted by ShADe on 1/21/2000, 5:32 am
, in reply to "Date task"
203.57.68.10
What the hell might as well do the date program too.
This is a snippet from my assembler program which is available here:While it does not save the results to the registry it will display the current
time in the windows FILETIME structure. The 62 bits are split into the 32 upper
bits and the 32 lower bits and displayed in Hexidecimal format.fmat db "%lx",0
Tim db 40h dup (?)
output db 40h dup (?)
Getime proc _hDlg
push offset Tim
Call GetSystemTimeAsFileTime
mov ecx, dword ptr [offset Tim]
push ecx
push offset fmat
push offset output
call _wsprintfA
call SetDlgItemTextA,_hDlg,IDC_EDIT2 ,offset output
mov ecx, dword ptr [offset Tim+4]
push ecx
push offset fmat
push offset output
call _wsprintfA
call SetDlgItemTextA,_hDlg,IDC_EDIT1 ,offset output
RET
Getime ENDP