Re: custom shell starts before all services loaded
From: KM (konstmor_at_nospam.yahoo.com)
Date: 03/19/04
- Next message: Sean Liming \(eMVP\): "Re: Minlogon + ACPI + Standby"
- Previous message: flo: "RE: sdimgr Error 0x80004005"
- In reply to: Greg Brown: "custom shell starts before all services loaded"
- Next in thread: Greg Brown: "Re: custom shell starts before all services loaded"
- Reply: Greg Brown: "Re: custom shell starts before all services loaded"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 19 Mar 2004 11:17:03 -0800
Greg,
I did not quite get what your requirement is. Do you just want to launch your shell app and know when user input is available in it?
Then you should look at WaitForInputIdle API. You may end up launching a very small app as your shell. The app will run your heavy
shell through CreateProcess and during the launching time it may show a splash screen. If you call to WaitForInputIdle with the
handle from CreateProcess, then you know for sure when user is able to do anything within the shell UI.
More detail, " ... the calling thread can use the WaitForInputIdle function to wait until the new process has finished its
initialization and is waiting for user input with no input pending. This can be useful for synchronization between parent and child
processes, because CreateProcess returns without waiting for the new process to finish its initialization. For example, the creating
process would use WaitForInputIdle before trying to find a window associated with the new process.".
--
KM,
BSquare Corporation
> I found other posts similar to this on google, but no responses...
>
> My custom shell starts, but no user input is available for several seconds.
> I guess I could use EnumProcesses to wait until something starts, but not
> sure what to wait for. The only thing I saw resembling a reply was a
> suggestion that the startup app just wait 'a bit' until it started the
> actual gui. I was hoping for something a little more deterministic.
>
> Thanks,
>
> Greg
- Next message: Sean Liming \(eMVP\): "Re: Minlogon + ACPI + Standby"
- Previous message: flo: "RE: sdimgr Error 0x80004005"
- In reply to: Greg Brown: "custom shell starts before all services loaded"
- Next in thread: Greg Brown: "Re: custom shell starts before all services loaded"
- Reply: Greg Brown: "Re: custom shell starts before all services loaded"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|