Re: An issue about DriverUnload

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi, Doron,

Thanks for your reply. My question is not clear I think, I'm sorry for
that.
First, my device is a TouchScreen use serial port just like a mouse
operation.
Second, I created SymbolicLink in order to open handle in APP program
and sent some custom IOCTL to device driver.
And I called

status = IoRegisterPlugPlayNotification (
EventCategoryDeviceInterfaceChange,
PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES,
(PVOID)&GUID_CLASS_COMPORT ,
DeviceExtension->DriverObject,
(PDRIVER_NOTIFICATION_CALLBACK_ROUTINE)ComPortNotifyInterfaceChange,
(PVOID)DeviceExtension,
&DeviceExtension->NotificationHandle);

in AddDevice function. After return SUCCESS, I create a thread by
PsCreateSystemThread to receive Touch Data all the time.

And now, I can't receive any PnP request, Even the DriverUnload
function will be never called without IoAttachDeviceToDeviceStack.
Should I create a notification from APP program (Call
RegisterDeviceNotification) to device driver?

Daniel

On 9月18日, 上午1时38分, "Doron Holan [MSFT]" <dor....@xxxxxxxxxxxxxxxxxxxx>
wrote:
first, is the OS serial mouse dirver not sufficient? second, is your serial
mouse serial enumerable? you should not be creating sym links in your mouse
driver, mouclass does that for you

--
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.


.



Relevant Pages

  • Re: Programming hardware controls
    ... If the device has a fairly simple serial port or parallel port ... protocol you can do it from high level java. ... For anything else, you need to write a device driver, usually in C++ ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Intercepting drivers
    ... Do I have to become a device driver developer to intercept a device driver or ... is there a higher level available? ... the physical serial port by means of serial.sys. ... I have to filter/intercept ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Yet another for Serial to Ethernet!
    ... You want to run the serial port at 1M baud? ... device driver. ...
    (comp.arch.embedded)
  • Re: No Console
    ... data is written to the serial port without checking the seral port ... After getty starts the serial port device driver, ... I had to add the "clocal" option to the tty runmodes options. ...
    (comp.unix.aix)
  • Re: Touch Screen Controller Driver
    ... Please do not send e-mail directly to this alias. ... "Narendra Kulkarni" wrote in message ... Can i use the serial Mosue Driver ... >>> provided with DDK to write a device driver for a touch screen ...
    (microsoft.public.development.device.drivers)