Driver Sub Key | Value Name | Value | Description |
---|---|---|---|
Ndi | DeviceID | device ID | The device ID for this driver. |
Ndi | NdiInstaller | dllname,procname | The custom NDI procedure for this driver. The dllname is required; the default procname is NdiInstaller if none is specified. Note, this DLL must be copied in the registration section rather than the install section. (See the following) |
Ndi | InfFile | filename | The InfFile value is maintained by NETDI and should not be specified in the INF file. |
Ndi | InfSection | section name | The InfSection value is maintained by NETDI and should not be specified in the INF file. |
Ndi | InstallInf | list of INFs | The list of INF files to add to the INF database when this component is selected. These INFs must be copied in the registration section. See Referring to other INFs in the following. |
If your component requires a custom NDI procedure DLL, this DLL must be copied before any of the other files are copied. This allows the DLL to display any custom UI before the user clicks the OK button in the Network Control Panel to cause NETDI to save the configuration. Furthermore, INF files that are not included with Windows 95 should copy themselves to the hard disk. To do this, copy the DLL and INFs by using a CopyFiles command in your registration section, as shown in the following example:
[MYDEVICE.ndi]
AddReg=MYDEVICE.ndi.addreg
CopyFiles=MYDEVICE.ndi.copyfiles,MYDEVICE.inf.copyfiles
[MYDEVICE.ndi.addreg]
HKR,Ndi,DeviceID,,MYDEVICE
HKR,Ndi,Installer,,"MyNDI.DLL,MyNDIProc"
; ...other registration info...
HKR,Ndi\Install,,,"MYDEVICE.Install"
[MYDEVICE.ndi.copyfiles]
MyNDI.DLL
[MYDEVICE.inf.copyfiles]
MyNDI.INF
[MYDEVICE.Install]
AddReg=MYDEVICE.Install.addreg
CopyFiles=MYDEVICE.Install.copyfiles
[MYDEVICE.Install.addreg]
; Registry keys needed to start this component
[MYDEVICE.Install.copyfiles]
[DestinationDirs]
MYDEVICE.ndi.copyfiles = 11 ; System directory
MYDEVICE.inf.coypfiles = 17 ; INF directory