Custom Shell

M

Mule Skinner

I wrote a small application which acts as the shell. It also waits about 30
seconds before it launches the main application.
I do this to keep the Main application from crashing on start up since it
uses allot of stuff that isn't up and going yet.

My Application uses a USB Pen Drive for configuration data and a few other
things. "Most" of the time, My app fires up before the USB drive is
mounted. A few other items like networking and such.

Is there a way for me to see when Windows is Totally up and running,
services and all, without having to use a safe-predefined wait period?

Next, is there a way to call EWF Commit without shelling to the EWFMGR
program? I'd like a button on my shell app to be able to Commit and Reboot.

Thanks,
Richard
 
S

Slobodan Brcin \(eMVP\)

Hi Mule,


Use following in loop for 50-100 times
{
CMP_WaitNoPendingInstallEvents(INFINITE);
Sleep(10);
}

If there are no installation if progress it will pass in less than an second. But if there is a pause in installation for few ticks
it will wait for next installation to end and then count down.
This is very crude but it should work.


EWF API:
http://groups.google.com/groups?hl=...a=group=microsoft.public.windowsxp.embedded.*


Regards,
Slobodan
 
M

Mule Skinner

Thanks for the help.


Slobodan Brcin (eMVP) said:
Hi Mule,


Use following in loop for 50-100 times
{
CMP_WaitNoPendingInstallEvents(INFINITE);
Sleep(10);
}

If there are no installation if progress it will pass in less than an
second. But if there is a pause in installation for few ticks
 
M

Mule Skinner

Well, I have search High and Low for the EWFAPI.DLL on the target and on the
development machine and it's not found.
If you remember right, when I was installing your Ram Based EWF Component,
EWFAPI.DLL was not found anywhere.

I searched all the repositories and it's not there either. Is it some place
I'm missing, or how do I get another copy of that file without re-installing
everything.

Richard

Slobodan Brcin (eMVP) said:
Hi Mule,


Use following in loop for 50-100 times
{
CMP_WaitNoPendingInstallEvents(INFINITE);
Sleep(10);
}

If there are no installation if progress it will pass in less than an
second. But if there is a pause in installation for few ticks
 
R

Richard

Your 100% Correct, My apologies. Lack of sleep I guess. I had performed a
search earlier and found all kinds of stuff but missed the QFE that had the
Api in it.



Slobodan Brcin (eMVP) said:
Hi Mule,
Well you heard about QFE things, right?

If you have read some of few links search gave you would notice that this
file is part of QFE Q818822 that you can download.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top