PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: paulDiagnos on March 27, 2008, 01:32:43 PM

Title: WINapi Question
Post by: paulDiagnos on March 27, 2008, 01:32:43 PM
Hey Guys,
Im Stumped with this one, i have a system that takes for ever to boot. When I disable a hardware profile and reboot its much faster.

I can then (once booted) manually enable the device in the device manager (win98) and the device works perfectly.

is there a series of winapi commands that i can run that can enable the hardware device on boot. I have had a look at WM_DEVICECHANGE but doesnt help much.

bit of a tough one can any one help?

cheers Paul
Title: Re: WINapi Question
Post by: Brian Chirgwin on March 29, 2008, 12:39:31 PM
Boot normally and check for IRQ sharing or problems.

You may need to disable ports your not using (LPT or COM ports) via the BIOS.

Also the BIOS might allow you to change the IRQ of devices.

It's been a long time since I've done this on Win98, but in the Device manager you should be able to view devices by IRQ or just view each devices and check which IRQ it is using.

Another thought is if the computer has a CD Rom drive make sure it is not on the same IDE channel as your drive. If it is your drive will be only as fast as the CD Rom drive.

Title: Re: WINapi Question
Post by: paulDiagnos on March 31, 2008, 10:48:25 AM
Sorry Brian but i think i would be barking up the wrong tree this way.

I should have been clearer :
I can disable the hardware via the system properties. (i can replicate this with some registry entries)  and then rebooting takes the quick 30 secs on our system.

what i was hoping to do was to through software re enable the hardware. I try and change the registry values back as they were before, but the hardware doesnt enable unless you reboot.

Title: Re: WINapi Question
Post by: Paul D. Elliott on March 31, 2008, 02:41:59 PM
For those of us who have practically no idea what you are talking about,
how about a little bit of detail info?

When you first mentioned "hardware profile", I thought you meant to
somehow remove ALL devices except the most basic needed to boot
( ide drive/ plain vga / keyboard / mouse ) and then somehow get
Windows to recognize everything once the plain boot got done.
But your last message seems to say that it is only 1 piece of hardware
that is causing the delay booting up. But still no details. Which one
piece of hardware do you think is causing the problem? Have you turned
on the Boot-log option and examined it's output to see if there is a
problem with a driver or some interference between drivers?

I probably won't be able to help you but maybe if you give more details
then someone can.
Title: Re: WINapi Question
Post by: paulDiagnos on April 01, 2008, 07:42:02 AM
Ok Paul,
Im not to great at explaining myself.

Our units, boot up is about 30 seconds at the moment, and they are running windows 98.

We want to add a wifi adapter to the units, but with our chosen wifi adapter boot time is doubled.

Playing around with disabling the wifi adapter in (via the registry or system properties menu) the boot time is restored to 30 secs. I can then Manually go into the system properties enable the wifi adapter and then use it.

what i was really hoping for was a way via the winapi was to enable this device the way i can Manually after the unit has booted.

I thought there would be just a API call to say collect the device list find out what is disable and then enable it .
I hope this explains it better.

Paul.