Re: WaitForAPIReady CE 6.0

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks for your help Dean.

Unfortunately our device will have to run in Kiosk mode when it ships so
there will be no shell as such, so the start menu approach seems to be out of
the picture as well. I am loathe just to wait 'a long time' by sleeping in my
thread until everthing 'should' be ready but it seems it might come to that?

Thanks Again

Phil


"Dean Ramsier" wrote:

Keep in mind that the CF just sits on top of a collection of native
components. There is no single mechanism to determine in general when a CF
based app will be able to run because it depends on what underlying system
component the app might have a dependency on.

I've had trouble with MFC based apps that I tried to start from the init
key. I found that moving them to the Start menu (launched by the shell)
always worked. I never did find the dependency, but it wasn't sufficient to
just wait on the shell to load...

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Phil" <pclaydon@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A54AF679-BEFE-48C2-A615-C7CD305EB0DA@xxxxxxxxxxxxxxxx
Hi Chris

Thanks for your reply. I actually have a c++ app which is started in the
Init registry key which in turn then starts the managed apps. Currently I
am
waiting on SH_GDI, SH_WMGR and SH_COMM (for serial comms?). What
specifically are the other APIS it should wait for to guarantee that the
managed apps can also run?

Best Regards
--
Phil

Remove the nospam section from my e-mail address.


"Chris Tacke, eMVP" wrote:

There is no check for it, as it's not something in the kernel that "gets
ready". The issue for running CF apps is knowing if the stuff the CF
needs
to run is ready, and unfortunately you can't check that inside a CF app
due
to the obvious Catch-22.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Phil" <pclaydon@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:37A3EE5A-1DD4-4E27-B046-62FE75B42042@xxxxxxxxxxxxxxxx
Hi All

Does anyone know if there is a value (or constant) of the
dwAPISlotIndex
parameter that I can use with the WaitForAPIReady function in CE 6.0
that
will tell me specifically when the Compact Framework 2.0 is ready?

Thanks
--
Phil

Remove the nospam section from my e-mail address.






.



Relevant Pages

  • Re: Profiler tools for WinCE 6.0 device
    ... You definitely can debug CE 5.0 apps with Studio '08. ... Chris Tacke, Embedded MVP ... just i dono how to compile the c++ app with callcap at Visual Studio ...
    (microsoft.public.windowsce.platbuilder)
  • Re: sqlce resources not released on application.exit()?
    ... The last line of my main function is a call to Application.Run, so calling ... Chris Tacke, Embedded MVP ... the app was using immediately every time. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Longtime running requirement in control system
    ... idea what you BSP or app look like, or your development skills with either. ... please tell me the detail principle in maintenance. ... Chris Tacke, Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Longtime running requirement in control system
    ... We will use Webserver do configration works, ... idea what you BSP or app look like, or your development skills with either. ... Chris Tacke, Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: custom shell starts before all services loaded
    ... I created a small app for my custom shell which then starts my main app, ... > Then you should look at WaitForInputIdle API. ...
    (microsoft.public.windowsxp.embedded)