Page 1 of 1

detect if operation system to initialize completely ...

Posted: Wed Oct 26, 2005 10:56 am
by bingo
how can a program (api ...) detect if operation system (xp) to initialize completely ?

the problem:
The delay allows the operation system to initialize completely; this prevents the problems—such as Remote Procedure Call (RPC) errors—that can occur if a setup initializes before the operating system has initialized completely. (for example, by using the RunOnce key)

maybe delay(any_time) ... but better with detection (different delay for slow or fast computer) .

Posted: Wed Oct 26, 2005 3:47 pm
by Droopy
Search "explorer.exe" process ?

Posted: Wed Oct 26, 2005 7:06 pm
by dell_jockey
Droopy wrote:Search "explorer.exe" process ?
Nope, that would be too early... After the explorer process exists, the OS is still loading other modules, especially those whose icons show up on the bottom right of the task bar.
On clean server installs, where such modules might not be loaded, your method might have merit, I don't know. Have to check that...

Posted: Wed Oct 26, 2005 8:26 pm
by Fred
you can delay until the rpc call doesn't returns an error ?

Posted: Wed Oct 26, 2005 10:04 pm
by Droopy
http://www.windowsitpro.com/Article/Art ... .html?Ad=1

If you know the last service launched, you monitor it's status, when Stated the Operating System is Initialised ? ( Monitoring Services Status is easy with PBOSL )

Another solution is Monitoring CPU Activity ?