Welcome to WinForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Application can not receive WM_DEVICECHANGE

 
   Windows XP (Home) -> XP Device Driver RSS
Author Message
john

External


Since: Jan 18, 2008
Posts: 1



(Msg. 1) Posted: Fri Jan 18, 2008 7:32 pm
Post subject: Application can not receive WM_DEVICECHANGE Get Alert
Archived from groups: microsoft>public>windowsxp>device_driver>dev (more info?)

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.

 >> Stay informed about: Application can not receive WM_DEVICECHANGE 
Back to top
Login to vote
Display posts from previous:   
   Windows XP (Home) -> XP Device Driver All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows XP
 Windows Vista!
 Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]