Access to a driver
-
I need to use a device driver (developed by a colleague of mine) in my application that runs on WINNT and I have the following problem: I can access to the driver (CreateFile and OpenEvent) only if I'm logged with an Administrator user. Non-administrator users cannot access to the driver even if it starts automatically with the OS. Is this a normal situation or can I do something to allow the application to access to the driver even if it is used by a non-Admin user ???
-
I need to use a device driver (developed by a colleague of mine) in my application that runs on WINNT and I have the following problem: I can access to the driver (CreateFile and OpenEvent) only if I'm logged with an Administrator user. Non-administrator users cannot access to the driver even if it starts automatically with the OS. Is this a normal situation or can I do something to allow the application to access to the driver even if it is used by a non-Admin user ???
I assume you checked the return code for the failed CreateFile() and it was #5 (access denied). If so then the most likely problem is the device driver was installed requiring admin privs to connect to it. Check the install.