Re: dont get the removecomplete message from the window XP.





"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,











.



Relevant Pages

  • Re: dont get the removecomplete message from the window XP.
    ... are you registering for pnp notifications on the *file* handle that you open ... Please do not send e-mail directly to this alias. ... USB Device which also support serial communication. ... I monitors device arrival/removal notification (Serial Port), ...
    (microsoft.public.development.device.drivers)
  • Re: dont get the removecomplete message from the window XP.
    ... My App is waiting for the DBT_DEVTYP_PORT-RemoveComplete, ... I dont need to register for that notification. ... USB Device which also support serial communication. ... I monitors device arrival/removal notification (Serial Port), ...
    (microsoft.public.development.device.drivers)
  • Re: Reading USB port
    ... If you are dealing with a USB device that has a driver that exposes the device as a serial port, then you connect just as you would to a serial port. ... Some USB devices act like a removable disk. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: PDA with usb host support and programming on VS2003
    ... Most PDA have RS232 support. ... We currently have USB device that connects to a PC and gets recognized ... as serial port device.This USB device emulates a serial device. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Behaviour of USB Device in low powered state
    ... Please do not send e-mail directly to this alias. ... similarly i want the system wake when the device is disconnected too. ... notification to my driver when a USB device gets disconnected. ...
    (microsoft.public.development.device.drivers)