PC Review


Reply
Thread Tools Rate Thread

Could not trace DBT_DEVICEARRIVAL in Win2000

 
 
Mukesh Yadav
Guest
Posts: n/a
 
      11th Sep 2003
As per MSDN documentation, I am not able to trace
DBT_DEVICEARRIVAL
event in Win 2000.
Event handler written for WM_DEVICECHANGE event works
fine in
Windows-98 but does not work in Win2000

Here is the event handler
OnDeviceChange( UINT nEventType, DWORD dwData )
{
switch(nEventType)
{
case DBT_DEVICEARRIVAL:
// Do something
break;
case DBT_DEVICEREMOVECOMPLETE:
// do something
break;
}

}
In case of Win2000 I always get the nEventType
DBT_DEVNODES_CHANGED.
Please, suggest me the way to handle this situation.

Regards
Mukesh Yadav

 
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
not receiving WM_DEVICECHANGE-DBT_DEVICEARRIVAL Erwin Hill Windows XP Drivers 1 27th Dec 2004 12:48 AM
not always receiving WM_DEVICECHANGE-DBT_DEVICEARRIVAL Erwin Hill Microsoft VC .NET 0 22nd Dec 2004 10:52 PM
Trace: Can anyone suggest a good tool to catch trace messages? Rukmal Fernando Microsoft C# .NET 4 27th Oct 2003 09:03 PM
Not able to trace in DBT_DEVICEARRIVAL Win2000 Mukesh Yadav Microsoft Windows 2000 Applications 0 11th Sep 2003 05:20 AM
egister for DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE events? Mike Pollett Microsoft C# .NET 0 8th Sep 2003 08:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 AM.