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"

Re: how to install a custom version of ndisuio.sys by fat_boy

fat_boy
Fri May 27 10:02:07 CDT 2005

Your class GUID is wrong. It should be
{4d36e975-e325-11ce-bfc1-08002be10318}.

{7B1707CC-4E47-4691-9B44-61EDD=AD981E9D8 is not in the CCS\Control\Class
key. I googled for it, not found, so I dont know what it is or where
you got it from!

Good luck!


Re: how to install a custom version of ndisuio.sys by Chris

Chris
Fri May 27 10:16:01 CDT 2005

fat_boy wrote:
> Your class GUID is wrong. It should be
> {4d36e975-e325-11ce-bfc1-08002be10318}.
>
> {7B1707CC-4E47-4691-9B44-61EDD­981E9D8 is not in the CCS\Control\Class
> key. I googled for it, not found, so I dont know what it is or where
> you got it from!
>
> Good luck!
>


thanks very much! that works a treat.

i mistakenly thought i'd have to generate my own guid so that guid came
from guidgen. doh!


Chris