Hi all,
i'm working on a device driver for the first time ever - a bit out of my
depth here, and i would appreciate anyones help ...
I'm trying to make a copy of the ndisuio.sys device driver supplied with
the winxp ddk, as suggested here http://www.ndis.com/pcakb/KB01010301.htm
I've compiled a new version of the driver as directed in the above page
seemingly without any problems. this is called ndisvi.sys.
The problem i'm having is that i can't get it to install.
I've copied it into the \windows\system32\drivers directory and updated
the .inf file as suggested (see below). when i try to install it (from
network connection->properties->install->protocol->add->have disk) i get
the following error message:
'The specified location does not contain information about your hardware'
any suggestions would be much appreciated,
Chris
-----------------------------------------------
[version]
Signature = "$Windows NT$"
Class = NetTrans
ClassGUID = {7B1707CC-4E47-4691-9B44-61EDD981E9D8}
Provider = %Msft%
LayoutFile = layout.inf
[Manufacturer]
%Msft%=MSFT
[MSFT]
%NDISVI_Desc%=Install, NDISVI
;-------------------------------------------------------------------------
; Installation Section
;-------------------------------------------------------------------------
[Install]
AddReg=Inst_Ndi
Characteristics=0x28 ; NCF_HIDDEN | NCF_NOT_USER_REMOVABLE
CopyFiles=CpyFiles_Sys
;-------------------------------------------------------------------------
; Ndi installation support
;-------------------------------------------------------------------------
[Inst_Ndi]
HKR,Ndi,Service,,"Ndisvi"
HKR,Ndi,HelpText,,%NDISVI_HelpText%
HKR, Ndi\Interfaces, UpperRange,, noupper
HKR,"Ndi\Interfaces","LowerRange",,"ndis5,ndis4,ndis5_uio"
;-------------------------------------------------------------------------
; Service installation support
;-------------------------------------------------------------------------
[Install.Services]
AddService=Ndisvi,,NDISVI_Service_Inst
[Ndisuio_Service_Inst]
DisplayName = %NDISVI_Desc%
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_MANUAL_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\ndisvi.sys
LoadOrderGroup = NDIS
Description = %NDISVI_Desc%
[Install.Remove.Services]
DelService=Ndisvi
;-------------------------------------------------------------------------
; Declare Destination Directories for file copy/deletion
;-------------------------------------------------------------------------
[DestinationDirs]
CpyFiles_Sys = 12 ; DIRID_DRIVERS
;-------------------------------------------------------------------------
; Files to Copy/Delete - Referenced by Install and Remove sections above
;-------------------------------------------------------------------------
[CpyFiles_Sys]
Ndisvi.sys,,,2
[Strings]
Msft = "CSM"
NDISVI_Desc = "NDIS Usermode I/O Protocol (VI)"
NDISVI_HelpText = "A driver to support user-mode I/O on NDIS devices"