Installing Network Protocol Driver
-
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
-
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
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.
-
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
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.