Programs like ScanDisk/chkdsk can run while Windows is booting, i.e. before the logon screen appears. I thought this was only for Windows internal programs, but I have seen that Avast! antivirus offers the same feature, to perform virus checks while Windows is not yet loaded. How is this accomplished? I.e. what kind of APIs do I have to use to write such a program? Can it be any kind of commandline program, am I restricted to a subset of the Windows API, do I have to implement a specific interface?
Programs like ScanDisk/chkdsk can run while Windows is booting, i.e. before the logon screen
Share
Look at registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
And value of BootExecute
More info here :
http://technet.microsoft.com/en-us/library/cc963230.aspx