Windows date and time

forum.advanced.programming (1998-2005)
Neil

Windows date and time

Post by Neil » 17 May 2001, 18:54

 Posted by:  Neil 


Use the SetSystemTime function which is exported from KERNEL32.DLL

Marcelo Guimarães

Windows date and time

Post by Marcelo Guimarães » 17 May 2001, 19:04

 Posted by:  Marcelo Guimarães de OLiveira 

Hi group,

How can i change Windows date and time through centura 1.5, if it's
possible anyway.

thanks

Marcelo Guimarães

Windows date and time

Post by Marcelo Guimarães » 17 May 2001, 20:07

 Posted by:  Marcelo Guimarães de OLiveira 

Ok, but how can i define this function under kernel32.dll

Check Abdoul

Windows date and time

Post by Check Abdoul » 17 May 2001, 21:04

 Posted by:  Check Abdoul 

Try

Library name: kernel32
Function: SetSystemTime
Description:
Export Ordinal: 0
Returns
Boolean: BOOL
Parameters
structPointer
Number: WORD
Number: WORD
Number: WORD
Number: WORD
Number: WORD
Number: WORD
Number: WORD
Number: WORD

Cheers
Check Abdoul
-------------------

Christian Astor

Windows date and time

Post by Christian Astor » 18 May 2001, 09:01

 Posted by:  Christian ASTOR 


SetLocalTime()
(adjust SE_SYSTEMTIME_NAME privilege for NT/2000)

then SendNotifyMessageA(HWND_BROADCAST, WM_TIMECHANGE, 0, 0)

Alberto Aviles

Windows date and time

Post by Alberto Aviles » 20 Jan 2005, 20:54

 Posted by:  Alberto Aviles 

Try with " Net Time \\ServerName /set " with this u get the date from a
server, u can put this in the windows startup

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests