Re: dont get the removecomplete message from the window XP.
- From: ck <ck@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Nov 2006 21:53:04 -0800
"Doron Holan [MS]" wrote:
are you registering for pnp notifications on the *file* handle that you open.
as well?
d
--
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.
"ck" <ck@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CA1EC189-5CC9-453D-9D98-4646E3EFEAE9@xxxxxxxxxxxxxxxx
Hello,
I'm working on WIN32 application which monitors and passes data from and
to
USB Device which also support serial communication .
I monitors device arrival/removal notification ( Serial Port ), by the
way,
especially
while I try to read data from USB device, if i remove usb device from PC,
I dont get the removecomplete message from Windows.
My process is the following.
1) Device Arrival ( Serial Port -DBT_DEVTYP_PORT)
2) Open Serial Port
3) Write/Read Serial Port
4) Close Serial Port
5) Open USB Device Port
6) Write/Read USB Device
7) if Read Failed, Close USB Device Handle
8) Device RemoveComplete ( Serial Port - DBT_DEVTYP_PORT ) ==> dont get
that
message .
The Device Driver Developer said to me that
He verified the following fact.
My app closes serial com port,
and closes USB Device port,
and Device Driver called WinAPI for Windows Event
iosetdeviceinterfacestate() to OS.
=> But My App or the other windows event collector(test program ) dont get
that messages.
After I kill My App, The RemoveComplete Event is notified.
Except closing opened port, what else should I do?
Any suggestion will be appreciated.
Regards,
kiyo,
- References:
- Re: dont get the removecomplete message from the window XP.
- From: Doron Holan [MS]
- Re: dont get the removecomplete message from the window XP.
- Prev by Date: Re: Vista 5840 and Int 2C
- Next by Date: Re: Vista 5840 and Int 2C
- Previous by thread: Re: dont get the removecomplete message from the window XP.
- Next by thread: Re: dont get the removecomplete message from the window XP.
- Index(es):
Relevant Pages
|