Click to See Complete Forum and Search --> : Windows Boot Process Monitoring
pantaz
September 16th, 2005, 10:15 PM
How can I determine if Windows (2000, XP, NT) has finished all of its boot/startup processes?
Microsoft Bootvis (http://www.majorgeeks.com/BootVis_d664.html) does it, so I know it is possible.
I've searched MSDN and Google every way I can think of, but nada.
-- Mike
Marc G
September 17th, 2005, 03:50 AM
I don't know, but why would you want to do that? Perhaps there is another solution to your problem.
kreaThor
September 17th, 2005, 06:52 PM
Hello!
You should probably use WMI in order to solve your problem.
I have just found this in MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_computersystemevent.asp) it still does not resolve your problem but I think it is a good place to start. I found something about System shut down - Win32_ComputerShutdownEvent (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_computershutdownevent.asp) - and boot configuration - Win32_BootConfiguration (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_bootconfiguration.asp) - you should do some more research on MSDN on WMI, there must be a way to get the time when the system is up.
Hope this was somehow useful to you! If you find out, please also let me know, I am also curious.
kreaThor
September 29th, 2005, 12:04 PM
Hello!
I don't know wether anyone has had any more particular interest in this topic, but while I was browsing through MSDN, I found the following related links:
1) Your app can be aware of user logon in WinXP by intercepting the message WM_WTSSESSION_CHANGE (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wm_wtssession_change.asp). But we do have some severe portability issues with this solution. According to MSDN, the OS must be WinXP or Longhorn(!!!), and also the app must be registered to receive this message by calling WTSRegisterSessionNotification.
2)If you want to have a fine control over the events of user logon/logoff, you should create a Winlogon notification package. Here is the link in MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/creating_a_winlogon_notification_package.asp) about the topic. For a more thorough understanding of the topic I suggest you read all the topics in the Winlogon and GINA (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/winlogon_and_gina.asp) section in MSDN
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.