Error in Building the Passthrough NDIS IM Driver from DDK
- From: "Abhijit" <abhijitcpawar@xxxxxxxxx>
- Date: 20 Mar 2006 21:13:33 -0800
Hi All ,
I have been trying to compile the Passthrough NDIS IM driver provided
in the DDK..
i am getting many compile errors about undeclared identifiers..
Following are the errors:
D:\Test_Pgms\NDIS_IM1\miniport.c(72) : warning C4013:
'NdisIMGetDeviceContext' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\miniport.c(72) : warning C4047: '=' : 'PADAPT'
differs in levels of indirection from 'int'
D:\Test_Pgms\NDIS_IM1\miniport.c(115) : warning C4013:
'NdisMSetAttributesEx' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\miniport.c(118) : error C2065:
'NDIS_ATTRIBUTE_IGNORE_PACKET_TIMEOUT' : undeclared identifier
D:\Test_Pgms\NDIS_IM1\miniport.c(119) : error C2065:
'NDIS_ATTRIBUTE_IGNORE_REQUEST_TIMEOUT' : undeclared identifier
D:\Test_Pgms\NDIS_IM1\miniport.c(120) : error C2065:
'NDIS_ATTRIBUTE_INTERMEDIATE_DRIVER' : undeclared identifier
D:\Test_Pgms\NDIS_IM1\miniport.c(121) : error C2065:
'NDIS_ATTRIBUTE_DESERIALIZE' : undeclared identifier
D:\Test_Pgms\NDIS_IM1\miniport.c(122) : error C2065:
'NDIS_ATTRIBUTE_NO_HALT_ON_SUSPEND' : undeclared identifier
D:\Test_Pgms\NDIS_IM1\miniport.c(286) : warning C4013:
'NdisIMCopySendPerPacketInfo' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\miniport.c(311) : warning C4013:
'NdisIMCopySendCompletePerPacketInfo' undefined; assuming extern
returning int
D:\Test_Pgms\NDIS_IM1\miniport.c(471) : warning C4013:
'NdisMSendComplete' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\miniport.c(912) : warning C4013:
'NdisMIndicateStatus' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\miniport.c(916) : warning C4013:
'NdisMIndicateStatusComplete' undefined; assuming extern returning int
passthru.c
D:\Test_Pgms\NDIS_IM1\passthru.c(93) : error C2065:
'NDIS_MINIPORT_CHARACTERISTICS' : undeclared identifier
D:\Test_Pgms\NDIS_IM1\passthru.c(93) : error C2146: syntax error :
missing ';' before identifier 'MChars'
D:\Test_Pgms\NDIS_IM1\passthru.c(93) : error C2144: syntax error :
'<Unknown>' should be preceded by '<Unknown>'
D:\Test_Pgms\NDIS_IM1\passthru.c(93) : error C2144: syntax error :
'<Unknown>' should be preceded by '<Unknown>'
D:\Test_Pgms\NDIS_IM1\passthru.c(93) : error C2143: syntax error :
missing ';' before 'identifier'
D:\Test_Pgms\NDIS_IM1\passthru.c(93) : error C2065: 'MChars' :
undeclared identifier
D:\Test_Pgms\NDIS_IM1\passthru.c(94) : error C2275:
'PNDIS_CONFIGURATION_PARAMETER' : illegal use of this type as an
expression
C:\WINDDK\2600.1106\inc\ddk\w2k\ndis.h(4647) : see declaration
of 'PNDIS_CONFIGURATION_PARAMETER'
D:\Test_Pgms\NDIS_IM1\passthru.c(94) : error C2146: syntax error :
missing ';' before identifier 'Param'
D:\Test_Pgms\NDIS_IM1\passthru.c(94) : error C2144: syntax error :
'<Unknown>' should be preceded by '<Unknown>'
D:\Test_Pgms\NDIS_IM1\passthru.c(94) : error C2144: syntax error :
'<Unknown>' should be preceded by '<Unknown>'
D:\Test_Pgms\NDIS_IM1\passthru.c(94) : error C2143: syntax error :
missing ';' before 'identifier'
D:\Test_Pgms\NDIS_IM1\passthru.c(94) : error C2065: 'Param' :
undeclared identifier
D:\Test_Pgms\NDIS_IM1\passthru.c(95) : error C2275: 'NDIS_STRING' :
illegal use of this type as an expression
C:\WINDDK\2600.1106\inc\ddk\w2k\ndis.h(4444) : see declaration
of 'NDIS_STRING'
D:\Test_Pgms\NDIS_IM1\passthru.c(95) : error C2146: syntax error :
missing ';' before identifier 'Name'
D:\Test_Pgms\NDIS_IM1\passthru.c(95) : error C2144: syntax error :
'<Unknown>' should be preceded by '<Unknown>'
D:\Test_Pgms\NDIS_IM1\passthru.c(95) : error C2144: syntax error :
'<Unknown>' should be preceded by '<Unknown>'
D:\Test_Pgms\NDIS_IM1\passthru.c(95) : error C2143: syntax error :
missing ';' before 'identifier'
D:\Test_Pgms\NDIS_IM1\passthru.c(95) : error C2065: 'Name' : undeclared
identifier
D:\Test_Pgms\NDIS_IM1\passthru.c(100) : warning C4013:
'NdisMInitializeWrapper' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\passthru.c(114) : error C2224: left of
'.MajorNdisVersion' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(115) : error C2224: left of
'.MinorNdisVersion' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(117) : error C2224: left of
'.InitializeHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(118) : error C2224: left of
'.QueryInformationHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(119) : error C2224: left of
'.SetInformationHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(120) : error C2224: left of
'.ResetHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(121) : error C2224: left of
'.TransferDataHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(122) : error C2224: left of
'.HaltHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(133) : error C2224: left of
'.CheckForHangHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(134) : error C2224: left of
'.ReturnPacketHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(140) : error C2224: left of
'.SendHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(141) : error C2224: left of
'.SendPacketsHandler' must have struct/union type
D:\Test_Pgms\NDIS_IM1\passthru.c(143) : warning C4013:
'NdisIMRegisterLayeredMiniport' undefined; assuming extern returning
int
D:\Test_Pgms\NDIS_IM1\passthru.c(153) : warning C4013:
'NdisMRegisterUnloadHandler' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\passthru.c(169) : warning C4133: 'function' :
incompatible types - from 'int *' to 'PUNICODE_STRING'
D:\Test_Pgms\NDIS_IM1\passthru.c(170) : error C2115: '=' : incompatible
types
D:\Test_Pgms\NDIS_IM1\passthru.c(182) : error C2039:
'BindAdapterHandler' : is not a member of
'_NDIS30_PROTOCOL_CHARACTERISTICS'
C:\WINDDK\2600.1106\inc\ddk\w2k\ndis.h(7765) : see declaration
of '_NDIS30_PROTOCOL_CHARACTERISTICS'
D:\Test_Pgms\NDIS_IM1\passthru.c(183) : error C2039:
'UnbindAdapterHandler' : is not a member of
'_NDIS30_PROTOCOL_CHARACTERISTICS'
C:\WINDDK\2600.1106\inc\ddk\w2k\ndis.h(7765) : see declaration
of '_NDIS30_PROTOCOL_CHARACTERISTICS'
D:\Test_Pgms\NDIS_IM1\passthru.c(184) : error C2039: 'UnloadHandler' :
is not a member of '_NDIS30_PROTOCOL_CHARACTERISTICS'
C:\WINDDK\2600.1106\inc\ddk\w2k\ndis.h(7765) : see declaration
of '_NDIS30_PROTOCOL_CHARACTERISTICS'
D:\Test_Pgms\NDIS_IM1\passthru.c(186) : error C2039:
'ReceivePacketHandler' : is not a member of
'_NDIS30_PROTOCOL_CHARACTERISTICS'
C:\WINDDK\2600.1106\inc\ddk\w2k\ndis.h(7765) : see declaration
of '_NDIS30_PROTOCOL_CHARACTERISTICS'
D:\Test_Pgms\NDIS_IM1\passthru.c(187) : error C2039: 'PnPEventHandler'
: is not a member of '_NDIS30_PROTOCOL_CHARACTERISTICS'
C:\WINDDK\2600.1106\inc\ddk\w2k\ndis.h(7765) : see declaration
of '_NDIS30_PROTOCOL_CHARACTERISTICS'
D:\Test_Pgms\NDIS_IM1\passthru.c(196) : warning C4013:
'NdisIMDeregisterLayeredMiniport' undefined; assuming extern returning
int
D:\Test_Pgms\NDIS_IM1\passthru.c(200) : warning C4013:
'NdisIMAssociateMiniport' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\passthru.c(267) : warning C4013: 'NdisMSleep'
undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\passthru.c(287) : warning C4013:
'NdisMRegisterDevice' undefined; assuming extern returning int
D:\Test_Pgms\NDIS_IM1\passthru.c(413) : warning C4013:
'NdisMDeregisterDevice' undefined; assuming extern returning int
Error executing cl.exe.
I have tried and included the proper ndis.h and lib's as well still the
error persists..
Any help in this regard will be appreciated...
--
Abhijit
.
- Follow-Ups:
- Re: Error in Building the Passthrough NDIS IM Driver from DDK
- From: Thomas F. Divine [DDK MVP]
- Re: Error in Building the Passthrough NDIS IM Driver from DDK
- Prev by Date: Re: why does a filter driver need to process pw irp?
- Next by Date: Re: is it possible to take a pc as a device and use usb driver to control it?
- Previous by thread: Re: Bluetooth DDI
- Next by thread: Re: Error in Building the Passthrough NDIS IM Driver from DDK
- Index(es):
Relevant Pages
|