Re: An issue about DriverUnload
- From: danielxu22@xxxxxxxxx
- Date: Wed, 17 Sep 2008 20:22:42 -0700 (PDT)
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.
.
- Follow-Ups:
- Re: An issue about DriverUnload
- From: Doron Holan [MSFT]
- Re: An issue about DriverUnload
- References:
- An issue about DriverUnload
- From: Daniel Xu
- Re: An issue about DriverUnload
- From: Doron Holan [MSFT]
- An issue about DriverUnload
- Prev by Date: Re: An issue about DriverUnload
- Next by Date: Re: Mirror Display Driver logo testing...
- Previous by thread: Re: An issue about DriverUnload
- Next by thread: Re: An issue about DriverUnload
- Index(es):
Relevant Pages
|