Hi timothy
thanks for the reply. The problem is in the driver . I just followed the
method that is used in sample driver in bulkusb in ddk . I guess the problem
is due to buffer length allocated for storing the symbolic link in my device
extension and there is no RtlFreeUnicodeString for temporary Unicode string
in the function after disabling the interface in RemoveDevice call . I
don’t know whether second one can cause problem or not .
But anyway what I was wondering is even though the buffer size is small why
it did not show any error . That was the reason why I thought it was working
. Though I am checking the return values they did not help me much.
I replaced the part of code by directly using UNICODE string rather using
conversion calls like RtlInitUnicodeString from char string and all .
Looks like lot of problems are there in ddk samples. I don’t know anybody
tested or not so far.
Anyway thanks alot for pointing me in right direction .
Thanks
srinivas
-----Original Message-----
From: Timothy A. Johns [mailto:xxxxx@driverdev.com]
Sent: Tuesday, June 12, 2001 6:17 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Not able to communicate with Application
OK that’s officially strange. Can you post or send privately the user-mode
code where you enumerate the devices with that GUID?
-Tim
Timothy A. Johns — xxxxx@driverdev.com
Driver Development Corporation — 800.841.0092
Bring Up Your Hardware — Fast. www.driverdev.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Srinivasa Rao Deevi
Sent: Tuesday, June 12, 2001 11:33 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Not able to communicate with Application
Hi Timothy
I checked all the options what you mentioned in your mail . It was never
going to CreateFile handler . I checked the
DO_DEVICE_INITIALIZING flag and
enabling the device interface in your IRP_MN_START_DEVICE
handler. They are
fine . Infact I checked the results on the driver side and
application side
. Both sides were showing the exact GUID what I defined . The CreateFile
gives INVALID HANDLE . Is there anything I am missing ?
Thanks in advance
srinivas
-----Original Message-----
From: Timothy A. Johns [mailto:xxxxx@driverdev.com]
Sent: Tuesday, June 12, 2001 7:32 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Not able to communicate with Application
Some steps to help you track this down:
-
Is your driver’s CreateFile handler getting called? If so, what
NTSTATUS value is it returning (and completeing the IRP with)? A KdPrint
should be able to help you track that down easily.
-
Assuming it is not, are you clearing the
DO_DEVICE_INITIALIZING flag in
your AddDevice?
-
Assuming you are clearing that flag, are you enabling the device
interface in your IRP_MN_START_DEVICE handler?
-Tim
Timothy A. Johns — xxxxx@driverdev.com
Driver Development Corporation — 800.841.0092
Bring Up Your Hardware — Fast. www.driverdev.com
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Srinivasa Rao Deevi
> Sent: Monday, June 11, 2001 11:26 PM
> To: NT Developers Interest List
> Subject: [ntdev] Not able to communicate with Application
>
>
> Hi all
>
> After completing enumeration of USB device , when I am trying
to open the
> Device , I am getting an Invalid Handle though the device path shows the
> correct value . I am not able to follow why it is failing in CreateFile
> call. Earlier I was using a different driver to talk to this
> device . Now I
> removed the old driver and installed new driver . After that I am having
> this problem. In previous case to present case the difference is
> GUID only .
> I am trying to use same PID and VID . Will it cause any problem ?
> Do I need
> to delete any more entries in the registry ?
>
> Thanks in advance
> srinivas
>
> —
> You are currently subscribed to ntdev as: xxxxx@driverdev.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
You are currently subscribed to ntdev as: xxxxx@transilica.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@driverdev.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@transilica.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