I See. Thank you very much!
I've tried the Message-Only Window. It's like a filter to deny the broadcast
message.
It can receive DBT_DEVICEARRIVAL & DBT_DEVICEREMOVECOMPLETE.
But DBT_DEVNODES_CHANGED is lost.
It seems part of the WM_DEVICECHANGE messages are broadcast.
But I found another question.
Does CreateFile() is also like such a message filter????
If a device file is opened, an non-message-only window of an application can
only receive the broadcast device message. I found it can receive only
DBT_DEVNODES_CHANGED , but neither DBT_DEVICEARRIVAL nor
DBT_DEVICEREMOVECOMPLETE.
Best Regards
Amanda Lin
"Doron Holan [MS]" wrote:
> IIRC == If I Remember Correctly
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Amanda Lin" <> wrote in message
> news:AC264957-5FAB-411B-94B8-...
> > What is the meaning of "IIRC"?
> >
> > "WM_DEVICECHANGE is IIRC a broadcast."
> >
> > Do you mean WM_DEVICECHANGE is a broadcast message? So a message-only
> > window can not receive such a message? Thank you!
> >
> > Best Regards
> > Amanda Lin
> >
> >
> > "Maxim S. Shatskih" wrote:
> >
> >> > See CreateWindow doc, hWndParent argument description.
> >> >HWND_MESSAGE or
> >> > another message-only window will create a message-only window, which
> >> > exists
> >> > solely as message target.
> >>
> >> Looking there.
> >>
> >> Message-only window does not receive broadcast messages :-)
> >> WM_DEVICECHANGE is
> >> IIRC a broadcast.
> >>
> >> --
> >> Maxim Shatskih, Windows DDK MVP
> >> StorageCraft Corporation
> >>
> >> http://www.storagecraft.com
> >>
> >>
>
>
>