regarding NDIS in win 98

Hello,
I am developing the NIC minport drievr in win 98,
I am using the 2000DDK for building the drievr,
Now i had written only the drievr Entry routine,
NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject,IN
PUNICODE_STRING RegistryPath)
{
NDIS_STRING Name;
NDIS_STATUS Status;
NDIS_HANDLE WrapperHandle;
NDIS_MINIPORT_CHARACTERISTICS Mchars;
PUINT NetworkAddressLength;

DbgPrint("Entered DriverEntry module \n ");

NdisMInitializeWrapper(&WrapperHandle, DriverObject,
RegistryPath, NULL);

NdisZeroMemory(&Mchars,sizeof(NDIS_MINIPORT_CHARACTERISTICS));
Mchars.MajorNdisVersion = 4;
Mchars.MinorNdisVersion = 0;
Mchars.InitializeHandler = AFCP_IPInitialize;
Mchars.QueryInformationHandler = AFCP_IPQueryInformation;
Mchars.SetInformationHandler = AFCP_IPSetInformation;
Mchars.ResetHandler = AFCP_IPReset;
Mchars.TransferDataHandler = NULL; //AFCP_IPTransferData;
Mchars.HaltHandler = AFCP_IPHalt;
Mchars.CheckForHangHandler = NULL;
Mchars.SendHandler = AFCP_IPSend;
Mchars.ReturnPacketHandler = AFCP_IPReturnPacket;

Status = NdisMRegisterMiniport(WrapperHandle, &Mchars,
sizeof(Mchars));

AFCP_DbgPrint(“Finished with DriverEntry \n”);
return Status;
}

driver entry is returnig Success
but when i saw the debug messages the Break due to page fault(OEH)
fault=0000 is accouring,
in properties of dreiver message is like this

Windows stopped responding while attempting to start this device,
and therefore will never attempt to start this device again(code
11)

for more information look up ASD in winows help,

i saw this help he has given the change the resource properties,
but there is no resource tab,

is there problem with inf file or any other ?
i am not allocatig any memory

inf file is

[version]
signature=“$CHICAGO$”
Class=Net
;ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Mfg%
Compatible = 1

[Manufacturer]
%Mfg%=Models

[Models]
; Note 1. Replace the bogus *NM_UNI_IP “hw-id” with a real
hardware PnP ID
; Note 2. Optionally, add more NIC models supported by this file
;
; DisplayName Section hw-id
; ----------- ------- ------
%*UNI_IP.devicedesc%=*UNI_IP.ndi, *NM_UNI_IP
;=PCI\VEN_1077&DEV_2200

;-------------------------------------------------------------------------------
; W9X Install Section
;
[*UNI_IP.ndi]
AddReg=*UNI_IP.ndi.reg, UNI_IP.ndi.reg, UNI_IP.params.reg
;

;-------------------------------------------------------------------------------
; PnP ID section for W9X
[*UNI_IP.ndi.reg]
HKR,Ndi,DeviceID,“*UNI_IP”

[UNI_IP.ndi.reg]
; Forced W9X install section
HKR,DevLoader,*ndis,*ntkern
HKR,DeviceVxDs,UNI_IP.sys
HKR,EnumPropPages,“netdi.dll,EnumPropPages”
; NDIS Info
HKR,NDIS,LogDriverName,“UNI_IP”
HKR,NDIS,MajorNdisVersion,1,05
HKR,NDIS,MinorNdisVersion,1,00

; Interfaces
HKR,Ndi\Interfaces,DefUpper,“ndis3,ndis4,ndis5”
HKR,Ndi\Interfaces,UpperRange,“ndis3,ndis4,ndis5”
HKR, Ndi\Interfaces, LowerRange,“ethernet”
HKR, Ndi\Interfaces, DefLower,“ethernet”

; Install sectioins
HKR,Ndi\Install,ndis5,“UNI_IP.ndis5”

; Install NDIS
[UNI_IP.ndis5]
CopyFiles=UNI_IP.w9x.CopyFiles

[UNI_IP.w9x.CopyFiles]
UNI_IP.sys

;-----------------------------------------------------------
; Sources
[SourceDisksNames]
99=%UNI_IP_disk%,“”,0

[SourceDisksFiles]
UNI_IP.sys = 99

;-----------------------------------------------------------
; Destination Dir
[DestinationDirs]
DefaultDestDir =11 ; system dir
UNI_IP.w9x.CopyFiles =11 ; 9X: windows\system

;-------------------------------------------------------------------------------
; Optional Custom Parameters in the Registry (“Advanced” menu).
[UNI_IP.params.reg]
; For example:
HKR, Ndi\params\Mode, ParamDesc, 0, %Mode%
HKR, Ndi\params\Mode, type, 0, “enum”
HKR, Ndi\params\Mode, default, 0,
“Default”
HKR, Ndi\params\Mode\enum, Default, 0, %Mode_basic%
HKR, Ndi\params\Mode\enum, Cool, 0, %Mode_cool%

HKR, NDI\params\NetworkAddress, ParamDesc, 0,
%NetworkAddress%
HKR, NDI\params\NetworkAddress, type, 0,
“edit”
HKR, NDI\params\NetworkAddress, LimitText, 0,
“12”
HKR, NDI\params\NetworkAddress, UpperCase, 0, “1”
HKR, NDI\params\NetworkAddress, default, 0, " "
;;“AABBCCDDEE11”
;HKR, NDI\params\NetworkAddress, optional, 0,
“1”
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
HKR, Ndi\params\MTUSize, ParamDesc, 0, “%MTUSize%”
HKR, Ndi\params\MTUSize, default, 0, “8192”
HKR, Ndi\params\MTUSize, min, 0, “140”
HKR, Ndi\params\MTUSize, max, 0, “32000”
HKR, Ndi\params\MTUSize, step, 0, “1”
HKR, Ndi\params\MTUSize, base, 0, “10”
HKR, Ndi\params\MTUSize, type, 0, “long”
HKR, Ndi\params\MTUSize, optional, 0, “0”

;-------------------------------------------------------------------------------
; Localizable Strings
;
[strings]
Mfg=“Uni Technologies inc.”
*UNI_IP.DeviceDesc=“UNI_IP Network Adapter”
DriverNetworks = “Compuware NuMega V1.0”
UNI_IP.devicedesc = “UNI_IP Network Adapter”
UNI_IP.Service.DispName = “UNI_IP Network Adapter”
NetworkAddress = “Network Address (MAC)”
Mode = “Sample Parameter”
Mode_basic = “Basic”
Mode_cool = “Cool”
UNI_IP_disk = “UNI_IP Driver Install Disk”
MTUSize = “MTUSize”
*NM_UNI_IP ==PCI\VEN_1077&DEV_2200

please help me where is the problem

Thanks and regards
-Siddu


There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.rediff.com/jobs