CMP_WaitNoPendingInstallEvents under windows 2000

I’m trying to build an installer for my PV drivers for Xen for Windows
2000. I never bothered for ages as I was under the impression that KMDF
didn’t support 2000 (only true of 1.0, 1.1-1.7 support it), and also my
drivers just didn’t work. I found though that 1.7 support 2000 just
fine, and that the reason they didn’t work was a difference in the way
KeNumberProcessors is defined. Now it works fine apart from the network
(my drivers are NDIS 5.1) and usb passthrough (build fail) drivers,
which I don’t care about really at this point.

The installer calls CMP_WaitNoPendingInstallEvents to wait until all
devices are installed before proceeding (need to wait for network driver
to be installed before copying the IP address from the emulated adapter
to the PV adapter etc), but the docs say that
CMP_WaitNoPendingInstallEvents is only supported with XP and newer, and
compile errors confirm that.

Is there another (easy?) way to mimic CMP_WaitNoPendingInstallEvents
under 2000? Failing that I’ll just pop up a “click next once all drivers
are installed” dialog and have done with it.

Thanks

James

You could wait for the device arrival notification of your NDIS device (or other device, or all devices you expect to install) explicitly. I assume you are only interested in your devices (and the drivers associated with them) and not some other device isntall that might have been kicked off. And you know (or can know) what devices you are waiting for I assume.

Good Luck,
Dave Cattley

Subject: [ntdev] CMP_WaitNoPendingInstallEvents under windows 2000
Date: Wed, 6 Oct 2010 21:38:37 +1100
From: xxxxx@bendigoit.com.au
To: xxxxx@lists.osr.com

I’m trying to build an installer for my PV drivers for Xen for Windows
2000. I never bothered for ages as I was under the impression that KMDF
didn’t support 2000 (only true of 1.0, 1.1-1.7 support it), and also my
drivers just didn’t work. I found though that 1.7 support 2000 just
fine, and that the reason they didn’t work was a difference in the way
KeNumberProcessors is defined. Now it works fine apart from the network
(my drivers are NDIS 5.1) and usb passthrough (build fail) drivers,
which I don’t care about really at this point.

The installer calls CMP_WaitNoPendingInstallEvents to wait until all
devices are installed before proceeding (need to wait for network driver
to be installed before copying the IP address from the emulated adapter
to the PV adapter etc), but the docs say that
CMP_WaitNoPendingInstallEvents is only supported with XP and newer, and
compile errors confirm that.

Is there another (easy?) way to mimic CMP_WaitNoPendingInstallEvents
under 2000? Failing that I’ll just pop up a “click next once all drivers
are installed” dialog and have done with it.

Thanks

James


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer