Yes.
From: Rahul Mathur
Sent: Friday, January 20, 2012 9:31 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Access NDIS virtual miniport adapter on Windows 7 from non-administrator user
And I haven’t set DO_BUFFERED_IO after calling NdisMRegisterDevice.
Rephrasing the first point:
a) If I migrate to NDIS 6 and use NdisMRegisterDeviceEx, will my application in user-mode be able to access the driver using IOCTLs using DeviceIoControl ?
Thanks
Warm Regds,
Rahul Mathur
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Rahul Mathur
Sent: Friday, January 20, 2012 7:32 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Access NDIS virtual miniport adapter on Windows 7 from non-administrator user
Hi Thomas,
Thank you for guiding me in this however, I still have some queries -
b) If I migrate to NDIS 6 and use NdisMRegisterDeviceEx, will my application in user-mode be able to access the driver using IOCTLs ?
c) If not, then do I have to write the IRP handlers for Read/Write & Create and then I will be able to access it ?
d) Do I need to change the inf file for permissions issue ?
e) I have not used the device object explicitly just plain pass-through logic (where I use DispatchTable to populate the IRP array pointer). Moreover my understanding was that NDIS libraries internally use the device object and doesn’t provide the access outside of it.
Please confirm.
Thanks
Warm Regds,
Rahul Mathur
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Thomas F. Divine
Sent: Friday, January 20, 2012 6:38 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Access NDIS virtual miniport adapter on Windows 7 from non-administrator user
1.) The approach you have taken will not change the permission issue that you see with NDIS 5 miniport running on Windows 7. So, what you are attempting is not worthwhile. The solution is migrating to a NDIS 6 miniport where NdisRegisterDeviceEx can be used instead of NdisMRegisterDevice.
2.) For your buffer problem: Did you set DO_BUFFERED_IO in the Flags field of your device object after calling NdisMRegisterDevice? Also, lengths are passed in a different field in the IRP stack for read/write/ioctl. If you examine the wrong field you may fetch the wrong length and think your buffer is zero length even though it isn’t.
Thomas F. Divine
http://www.pcausa.com
From: Rahul Mathur
Sent: Friday, January 20, 2012 7:20 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Access NDIS virtual miniport adapter on Windows 7 from non-administrator user
Hello,
I have an NDIS device driver derived from NetVMini 5.x which works perfectly well in Win XP. My aim is to migrate this driver to Windows 7 and access it as a normal user.
As Win7 has some stricter security features therefore, I just cannot access it the way I was accessing it in XP as even the CreateFile fails.
So I took a new approach to resolve this problem, I created 3 IRP handlers viz, Create, Read and Write thinking that now this permissions issue will get resolved unlike the case with IOCTLs.
However it seems that I have gone fathoms deeper in a different problem than before; now my Irp->AssociatedIrp.SystemBuffer is coming as NULL.
Can anybody please help me in this.
Thanks
Warm Regds,
Rahul Mathur
::DISCLAIMER::
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer