Booting is done - variable

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!
I use my application as shell. Problem is, that application starts about 25
seconds before booting is done. So, some drivers are still not installed and
application does not start correctly. Can I check some system variable when
booting is completly done?
Thank you.
Honza
 
Jan said:
I use my application as shell. Problem is, that application starts
about 25 seconds before booting is done. So, some drivers are still
not installed and application does not start correctly. Can I check
some system variable when booting is completly done?

This has been asked several times before. The standard answer so far,
been no.

What most people do is try the thing that they are waiting for and
silently handle the error until it either succeeds or a period of time
has elapsed.
 
There is no particular flag in WIndows that can tell you the system is booted. Simply becuase some components are goign to be loaded
and initialized late at the boot process , sometimes during, sometimes after Winlogon is loaded. E.g., TCP/IP stack, etc.

You can use CMP_WaitNoPendingInstallEvents API in your app to wait until all the driver installation are complete.

And obviously, you can wait for some services that your app depends on.
 
Thank you for your replies.
I solved it this way:
After winlogon ("Welcome") disappears, windows send to my app message 136
(WM_SYNCPAINT). After I receive this message, I can continue running my app.
Then I redirect messages to default WndProc. Is seems to work correctly.
Regards
Jan
 
Back
Top