fbreseal and PNP devices

  • Thread starter Thread starter Chris M.
  • Start date Start date
C

Chris M.

Is it possible to reseal an image so when it boots the
next time it installs all PNP devices before running the
applications in the Startup folder? Right now Windows XPE
installs devices and prompts for reboot while the main
application is loading.

Thanks in advance,
Chris
 
You should create launch application that will use
CMP_WaitNoPendingInstallEvents to wait until PNP is done, and then start
some other application.

But I'm not sure what exactly you want to accomplish.


Best regards,
Slobodan
 
Mainly I need the PCI serial card ports to get setup
before the application runs it's initial serial device
detection routine. The serial ports are usually different
from machine to machine. They might come up as COM5 and
COM6 on one machine and then COM7 and COM8 on another.
 
I see,

If it is your app then you can call
CMP_WaitNoPendingInstallEvents(INFINITE); before port detection.
Or you can make app that will wait for PNP end and then run new app.
This if few lines of code.

Regards,
Slobodan
 
Can this be done in VB? If so do you know where I could
find sample code?

Thanks,
Chris
 
HMODULE hcfg=LoadLibrary("cfgmgr32.dll");

CMP_WaitNoPendingInstallEvents=(DWORD (__stdcall
*)(DWORD))GetProcAddress(hcfg, "CMP_WaitNoPendingInstallEvents");

You can rewrite this in VB. I stopt using basic long time ago (qbasic for
dos).

Best regards,

Slobodan
 
Back
Top