Win 2k: Driver load BSOD with C0000262 and C0000034 status

Ok, I’ve fought this for a few days, and have no handle on how to resolve
it. It appears the BSOD happens when 2K is trying to load the driver, and
if I understand the error codes, 2K can’t find the image. Here is the
defining sections of the INF file.

;-------------- Service installation
[FgPeer_Device.NT.Services]
AddService = FgPeer,%SPSVCINST_ASSOCSERVICE%, FgPeer_Service_Inst,
FgPeer_EventLog_Inst

; -------------- Fibre Gear driver install sections
[FgPeer_Service_Inst]
DisplayName = %FgPeer.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 2 ; SERVICE_AUTO_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\FgPeer.sys
LoadOrderGroup = Extended Base
AddReg = pnpsafe_pci_addreg

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
DFG = “Delphi FibreGear, Inc.”
ClassName = “FibreGear”
StdMfg = “Delphi FibreGear”
DiskId1 = “Delphi FibreGear Drivers Installation Disk #1
FgPeer.DeviceDesc = “FgPeer”
FgPeer.SVCDESC = “FibreGear Peer to Peer Driver”

When I delete FgPeer.Sys, the system boots and everything looks good in the
registry. Imagepath is
“System32\Drivers\FgPeer.sys”.

What am I doing wrong?

Gary

[Gary Little] Found it, and fixed it, just seconds after I hit
send.

This is a port from an NT4 set of drivers, and FgPeer uses a
private, linked, interface to a driver that loads in the System Bus Extender
group. In porting the drivers to 2K I’ve “borrowed” the Toaster bus driver
and have been modifying it with my AddDevice extensions, as well as
initialization and ISR functionality.

One major change that is in the works, but not fully implemented
yet, is to use 2K’s GUID device interface, so that the DLL links will go
away in FgPeer. However, I was still linking FgPeer with the older lib that
had a different name, and since the lib file existed, the linker was fat
dumb and happy. When 2K loaded FgPeer during boot, it went looking to
resolve dynamic linking using Fg2x00 instead of FgBus.

Guess what? When I linked FgPeer with FgBus … it worked.

Gary