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. Database & SysAdmin
  3. System Admin
  4. Installing Network Protocol Driver

Installing Network Protocol Driver

Scheduled Pinned Locked Moved System Admin
sysadminjsonhelpannouncement
3 Posts 3 Posters 11 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.
  • M Offline
    M Offline
    Mark Koehler
    wrote on last edited by
    #1

    Has anyone ever installed a network protocol driver (or any other driver for that matter) programmatically. Our application will require the addition of a network protocol we include with the release and we want to make the installation seamless to the user. I already have an .INF file and .SYS (driver) file. What I need are some Win32 functions specific to NT4 which will use the INF file to install the driver. I'm trying to avoid having the user enter the Network Control Panel applet, accessing the Protocol tab and pressing Add Protocol. Specific sample code would help greatly, but additional direction wouldn't hurt. I've read all the documentation I can find on SetupDi* API functions, but can't quite come up with a solution which works. Thanks in advance for ANY help. Mark Koehler Atlanta GA

    M Z 2 Replies Last reply
    0
    • M Mark Koehler

      Has anyone ever installed a network protocol driver (or any other driver for that matter) programmatically. Our application will require the addition of a network protocol we include with the release and we want to make the installation seamless to the user. I already have an .INF file and .SYS (driver) file. What I need are some Win32 functions specific to NT4 which will use the INF file to install the driver. I'm trying to avoid having the user enter the Network Control Panel applet, accessing the Protocol tab and pressing Add Protocol. Specific sample code would help greatly, but additional direction wouldn't hurt. I've read all the documentation I can find on SetupDi* API functions, but can't quite come up with a solution which works. Thanks in advance for ANY help. Mark Koehler Atlanta GA

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      I (very briefly) used a firewall several years ago that needed to mess with the network settings at install time. It is possible to do it yourself, but the calls are completely undocumented. :( I wasn't a programmer for the firewall, so I don't know how they managed it. Sorry. :( But I'm positive that it can be done.

      1 Reply Last reply
      0
      • M Mark Koehler

        Has anyone ever installed a network protocol driver (or any other driver for that matter) programmatically. Our application will require the addition of a network protocol we include with the release and we want to make the installation seamless to the user. I already have an .INF file and .SYS (driver) file. What I need are some Win32 functions specific to NT4 which will use the INF file to install the driver. I'm trying to avoid having the user enter the Network Control Panel applet, accessing the Protocol tab and pressing Add Protocol. Specific sample code would help greatly, but additional direction wouldn't hurt. I've read all the documentation I can find on SetupDi* API functions, but can't quite come up with a solution which works. Thanks in advance for ANY help. Mark Koehler Atlanta GA

        Z Offline
        Z Offline
        zuozuo
        wrote on last edited by
        #3

        What u should do is to write another simple program. This program does the things that INF file just does. First, U copy the .sys to the system directory using "CopyFile"; Second, U Create/open driver registry key and set its values, using reg API, such as "RegCreateKeyEx". Third, using "OpenSCManager", "OpenService", "CreateService" etc, U can start the driver. About how to use these APIs, Look to the MSDN.

        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