Dear all
I don’t know what is the wrong of WD_DEVICECHANGE and Win2k
when I plug or remove usb device the only message that I have is DBT_DEVNODE_CHANGED, the arrival and remove messages never called in WM_DEVICECHANGE. Is there any thing that I can call in my driver starting up to inform ring3 applications about my device arrival??
thanks alot
regards
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hello ,
HD> I don’t know what is the wrong of WD_DEVICECHANGE and Win2k
HD> when I plug or remove usb device the only message that I have is DBT_DEVNODE_CHANGED, the arrival and remove messages never called in WM_DEVICECHANGE. Is there any thing that I can call in my
HD> driver starting up to inform ring3 applications about my device arrival??
is your device registered with it’s own GUID in kernel mode
(IoRegisterDeviceInterface) ?
When yes, the same GUID you must use for RegisterDeviceNotification in
user mode.
elli
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hi Hesham,
I don’t know why you didn’t get the other messages…
See an excerpt from dbt.h
“DBT_DEVNODES_CHANGED send when configmg finished a process tree
batch. Some devnodes
may have been added or removed. This is used by ring3 people which
need to be refreshed whenever any devnode changed occur (like
device manager). People specific to certain devices should use
DBT_DEVICE* instead”
so just use anyone from the following…
DBT_DEVICEARRIVAL 0x8000 // system detected a new
device
DBT_DEVICEQUERYREMOVE 0x8001 // wants to remove, may fail
DBT_DEVICEQUERYREMOVEFAILED 0x8002 // removal aborted
DBT_DEVICEREMOVEPENDING 0x8003 // about to remove, still
avail.
DBT_DEVICEREMOVECOMPLETE 0x8004 // device is gone
DBT_DEVICETYPESPECIFIC 0x8005 // type specific event
It was successs in my 1394 project…
HTH
Muhammad Faizal
-----Original Message-----
From: Hesham Desokey [mailto:xxxxx@yahoo.com]
Sent: Tuesday, February 13, 2001 1:54 PM
To: NT Developers Interest List
Subject: [ntdev] WM_DEVICECHANGE and win2k
Dear all
I don’t know what is the wrong of WD_DEVICECHANGE and Win2k
when I plug or remove usb device the only message that I have is
DBT_DEVNODE_CHANGED, the arrival and remove messages never called in
WM_DEVICECHANGE. Is there any thing that I can call in my driver starting
up to inform ring3 applications about my device arrival??
thanks alot
regards
You are currently subscribed to ntdev as: xxxxx@nestec.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
hi faizal
as I told you this is the inly message that windows send to WM_DEVICECHANGE
the other messages never called
so I nedd to know what is required to catch all DBT* messages ??!
----- Original Message -----
From: FAIZAL C K
To: NT Developers Interest List
Sent: Wednesday, February 14, 2001 4:57 AM
Subject: [ntdev] RE: WM_DEVICECHANGE and win2k
Hi Hesham,
I don’t know why you didn’t get the other messages…
See an excerpt from dbt.h
“DBT_DEVNODES_CHANGED send when configmg finished a process tree batch. Some devnodes
may have been added or removed. This is used by ring3 people which
need to be refreshed whenever any devnode changed occur (like
device manager). People specific to certain devices should use
DBT_DEVICE* instead”
so just use anyone from the following…
DBT_DEVICEARRIVAL 0x8000 // system detected a new device
DBT_DEVICEQUERYREMOVE 0x8001 // wants to remove, may fail
DBT_DEVICEQUERYREMOVEFAILED 0x8002 // removal aborted
DBT_DEVICEREMOVEPENDING 0x8003 // about to remove, still avail.
DBT_DEVICEREMOVECOMPLETE 0x8004 // device is gone
DBT_DEVICETYPESPECIFIC 0x8005 // type specific event
It was successs in my 1394 project…
HTH
Muhammad Faizal
-----Original Message-----
From: Hesham Desokey [mailto:xxxxx@yahoo.com]
Sent: Tuesday, February 13, 2001 1:54 PM
To: NT Developers Interest List
Subject: [ntdev] WM_DEVICECHANGE and win2k
Dear all
I don’t know what is the wrong of WD_DEVICECHANGE and Win2k
when I plug or remove usb device the only message that I have is DBT_DEVNODE_CHANGED, the arrival and remove messages never called in WM_DEVICECHANGE. Is there any thing that I can call in my driver starting up to inform ring3 applications about my device arrival??
thanks alot
regards
You are currently subscribed to ntdev as: xxxxx@nestec.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
hi elli
yes I have
is your device registered with it’s own GUID in kernel mode
(IoRegisterDeviceInterface) ?
yes
When yes, the same GUID you must use for RegisterDeviceNotification in
user mode.
I have registred notification with DBT_DEVTYP_HANDLE (DEVICE INTERFACE not
working)
the only message that I have WM_DEVICECHANGE is DBT_DEVICEREMOVECOMPLETE.
the arrival and removal messages never called
please clarify
thanks alot
regards
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hello,
I have registred notification with DBT_DEVTYP_HANDLE (DEVICE INTERFACE not
working)
the only message that I have WM_DEVICECHANGE is DBT_DEVICEREMOVECOMPLETE.
the arrival and removal messages never called
I use DBT_DEVTYPE_DEVICEINTERFACE and register 4-5 GUIDS with no
problemes. You are using SP1 ?. Have your driver a symblic link name ?
elli
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hi Elli
You are using SP1 ?.
if SP1==Service Pack 1 for win2k then yes
Have your driver a symblic link name ?
no. I am using GUID and the symbolice link created using windows setup
functions
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Take a look at Registering for Device Notification
in the Platform SDK to register a device interface GUID.
Mike
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com