Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

OSR is Hiring! Click here to find out more.

Upcoming OSR Seminars:
Kernel Debugging & Crash Analysis Lab, Palo Alto, CA 18-22 August, 2014
Writing WDF Drivers: Core Concepts Lab, Boston/Waltham, MA 22-26 September, 2014
Windows Internals & Software Drivers Lab, Dulles/Sterling, VA, 20-24 October, 2014
Developing File Systems for Windows, Seattle, WA 4-7 November, 2014


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 5  
07 Dec 09 09:07
ntdev member 45344
xxxxxx@molex.com
Join Date:
Posts To This List: 5
NDIS Sample Driver - Access Denied

Hi All, I am pretty sure that my problem is too easy to solve it, but I understand nothing. I am using : WINDDK 7600.16385.0. I am building the sample ndisprot 5x for Windows Seven. (7600.16385.0\src\network\ndis\ndisprot\5x\sys) I am using the test ample program for this drivers 7600.16385.0\src\network\ndis\ndisprot\5x\test). If I start the test program in non Adminstrator, I have an error (5) on CreateFile : Access Denied. The inf file has no "security" informationin INF file. If I need to add this kind of information, how I can do this. Thanks to all. note: I do some research on the forum wihtout success
  Message 2 of 5  
07 Dec 09 09:19
Thomas Divine
xxxxxx@pcausa.com
Join Date: 05 Aug 2010
Posts To This List: 635
NDIS Sample Driver - Access Denied

I assume that you have already started the driver using "net start ndisprot". You can try a different SSDL in your call to IoCreateDeviceSecure: SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RWX_RES_RWX Good luck, Thomas F. Divine http://www.pcausa.com -------------------------------------------------- From: <xxxxx@molex.com> Sent: Monday, December 07, 2009 9:09 AM To: "Windows System Software Devs Interest List" <xxxxx@lists.osr.com> Subject: [ntdev] NDIS Sample Driver - Access Denied > Hi All, > > I am pretty sure that my problem is too easy to solve it, but I understand > nothing. > > I am using : WINDDK 7600.16385.0. > I am building the sample ndisprot 5x for Windows Seven. > (7600.16385.0\src\network\ndis\ndisprot\5x\sys) > I am using the test ample program for this drivers > 7600.16385.0\src\network\ndis\ndisprot\5x\test). <...excess quoted lines suppressed...>
  Message 3 of 5  
07 Dec 09 09:21
ntdev member 51
xxxxxx@bwandel.com
Join Date:
Posts To This List: 252
NDIS Sample Driver - Access Denied

Did you look at the driver code? You are specifying that only system and administrators can access your device. Bill Wandel -----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@molex.com Sent: Monday, December 07, 2009 9:09 AM To: Windows System Software Devs Interest List Subject: [ntdev] NDIS Sample Driver - Access Denied Hi All, I am pretty sure that my problem is too easy to solve it, but I understand nothing. I am using : WINDDK 7600.16385.0. I am building the sample ndisprot 5x for Windows Seven. (7600.16385.0\src\network\ndis\ndisprot\5x\sys) I am using the test ample program for this drivers 7600.16385.0\src\network\ndis\ndisprot\5x\test). If I start the test program in non Adminstrator, I have an error (5) on CreateFile : Access Denied. The inf file has no "security" informationin INF file. If I need to add this kind of information, how I can do this. Thanks to all. note: I do some research on the forum wihtout success --- 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
  Message 4 of 5  
07 Dec 09 10:09
ntdev member 45229
xxxxxx@163.com
Join Date:
Posts To This List: 47
NDIS Sample Driver - Access Denied

<Q>If I start the test program in non Adminstrator, I have an error (5) on CreateFile : Access Denied.</Q> If you use CMD.exe to execute test.exe, maybe you need more privilege. Try run as Administrator!
  Message 5 of 5  
07 Dec 09 10:32
ntdev member 45344
xxxxxx@molex.com
Join Date:
Posts To This List: 5
NDIS Sample Driver - Access Denied

Great ! Many thanks to Thomas Divine and Bill Wandel ! I am OK, if I read the source code, I am specifying that only system and administrators can access your device. But as it is a sample it is not really me ;-). I updated the source code: before: status = IoCreateDeviceSecure(pDriverObject, 0, &ntDeviceName, FILE_DEVICE_NETWORK, FILE_DEVICE_SECURE_OPEN, FALSE, &SDDL_DEVOBJ_SYS_ALL_ADM_ALL NULL, &deviceObject); After: status = IoCreateDeviceSecure(pDriverObject, 0, &ntDeviceName, FILE_DEVICE_NETWORK, FILE_DEVICE_SECURE_OPEN, FALSE, &SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RWX_RES_RWX, NULL, &deviceObject); Now it is OK. Many Many Many thanks. This post is closed.
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 00:27.


Copyright ©2014, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license