1. this code:
Code: Select all
BufferSize=255
RegOpenKeyEx_(#HKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Windows NT\CurrentVersion",0,#KEY_QUERY_VALUE+256,@Key)
RegQueryValueEx_(Key, "InstallDate", 0, @Type, @Buffer, @BufferSize)
RegCloseKey_(Key)
MessageBox_(0,FormatDate("%dd.%mm.%yyyy, %hh:%ii:%ss", Buffer),"Windows_installed",0)However, the setting time is obtained in other ways:
2. C:\Windows\System32\wbem\Wmic.exe os get installdate /Value
3. C:\Windows\System32\Systeminfo.exe
more obtained in point 1 to 3 hours. Is it right or Data() underestimates the value of 3 hours?

