Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Access to a driver

Access to a driver

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anthony B
    wrote on last edited by
    #1

    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 ???

    D 1 Reply Last reply
    0
    • A Anthony B

      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 ???

      D Offline
      D Offline
      David Viggiano
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups