PC Review


Reply
Thread Tools Rate Thread

Application can not receive WM_DEVICECHANGE

 
 
john
Guest
Posts: n/a
 
      18th Jan 2008
Hi There,

Is any one out there know under what situation an application will not be
able to receive WM_DEVICECHANGE?

I used an OmniVision Web cam demo board with driver. And I wrote an
application which is supposed to receive the WM_DEVICECHANGE message, but it
did not receive the message.

The RegisterDeviceNotificaiton has been called, like below:

DEV_BROADCAST_DEVICEINTERFACE filterData;
ZeroMemory(&filterData, sizeof(DEV_BROADCAST_DEVICEINTERFACE));
filterData.dbcc_reserved = 0;
filterData.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
filterData.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
filterData.dbcc_classguid = AM_KSCATEGORY_CAPTURE;
ghDevNotify = RegisterDeviceNotification(ghwnd, &filterData,
DEVICE_NOTIFY_WINDOW_HANDLE);

What bother me is, if I use another Web cam (UVC or DirectShow compliant),
it works!
But if I use OmniVision Web cam board, it does not work!
Could it be the OminVision driver problem?

Any help will be highly appreciated.


 
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
WM_DEVICECHANGE =?Utf-8?B?Sks=?= Microsoft VB .NET 3 12th Feb 2007 08:37 AM
How the Get the WM_DEVICECHANGE Message in XPE winson Windows XP Embedded 1 15th Sep 2006 04:32 AM
Re: Trap WM_DEVICECHANGE on Pocket PC? Paul G. Tobey [eMVP] Microsoft Dot NET Compact Framework 0 13th May 2005 04:40 PM
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


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:44 AM.