PC Review


Reply
Thread Tools Rate Thread

Detecting plug'n'play

 
 
Georges Berenger
Guest
Posts: n/a
 
      9th Sep 2003
The first time the machine is powered up after a software install or a
hardware change (new device, could it be USB or not), the new devices
are discovered by the PnP mechanism. It works fine, with one caveat: it
completes long after my software has been launched and failed, because
the drivers weren't installed properly, yet.
All I need to do is restart the software, sometimes the OS as well, and
everything is happy. But the user experience is not very good. Why
doesn't the mouse/trackball work? etc.

I'd need a way to detect that PnP is running, so that I can pause my app
until PnP has finished its work, possibly display a message a user
requesting his patience.
Of course, I'd also need a way to know when PnP has finished, and if I
should restart or not.

Any idea anyone?

-georges

 
Reply With Quote
 
 
 
 
Slobodan Brcin
Guest
Posts: n/a
 
      10th Sep 2003
Hi Georges,

You have even more difficult questions than me :-)

> Of course, I'd also need a way to know when PnP has finished, and if I
> should restart or not.
> Any idea anyone?



DDK: Device Installation CMP_WaitNoPendingInstallEvents.

I had other things to do so I haven't tried this yet, but it is on my long
to do list.
Please let me know how it worked.


Let luck and knowledge guide you,

Slobodan


 
Reply With Quote
 
Georges Berenger
Guest
Posts: n/a
 
      10th Sep 2003
Slobodan Brcin wrote:
> Hi Georges,
>
> You have even more difficult questions than me :-)
>
>
>>Of course, I'd also need a way to know when PnP has finished, and if I
>>should restart or not.
>>Any idea anyone?

>
>
>
> DDK: Device Installation CMP_WaitNoPendingInstallEvents.
>
> I had other things to do so I haven't tried this yet, but it is on my long
> to do list.
> Please let me know how it worked.


that works just fine.
Because it requires the use of the DDK, and I'd rather avoid this (this
doesn't fit well in our multi-developer environment), I have decided to
load the dll manually & call the function directly. No problem.

Many thanks for the info!
-georges

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ICE Plug and Play Plug IN =?Utf-8?B?a2F5Y29ycA==?= Windows XP Help 2 8th Feb 2006 05:26 PM
Not Plug and Play =?Utf-8?B?RnJlZCBQZXJyeQ==?= Windows XP Help 4 1st Jul 2005 08:12 PM
Detecting Plug in =?Utf-8?B?U2hhcmtiYWl0?= Microsoft ASP .NET 1 11th Oct 2004 08:49 PM
Plug and Play not detecting USB Dou Njie Windows XP Hardware 1 20th Dec 2003 07:00 PM
Detecting USB Stick Plug in and Plug out (USB Harddrive) Daniel Diehl Microsoft C# .NET 1 18th Dec 2003 01:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 AM.