Пытаюсь написать драйвер с использование технологии NDIS. Только начал во всем этом разбираться. При компиляции драйвера возникают следующие ошибки:
C:\Driver>build
BUILD: Compile and Link for x86
BUILD: Loading c:\winddk\7600.16385.1\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Wed Jun 09 12:05:35 2010
BUILD: Examining c:\driver directory for files to compile.
c:\driver Invalidating OACR warning log for 'root:x86chk'
BUILD: Saving c:\winddk\7600.16385.1\build.dat...
BUILD: Compiling and Linking c:\driver directory
Configuring OACR for 'root:x86chk' - <OACR on>
_NT_TARGET_VERSION SET TO WINXP
Compiling - init.cpp
1>errors in directory c:\driver
1>c:\driver\init.cpp(27) : error C2039: 'MajorNdisVersion' : is not a member of
'_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(28) : error C2039: 'MinorNdisVersion' : is not a member of
'_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(29) : error C2039: 'Reserved' : is not a member of '_NDIS50
_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(30) : error C2039: 'Name' : is not a member of '_NDIS50_PRO
TOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(31) : error C2039: 'OpenAdapterCompleteHandler' : is not a
member of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(32) : error C2039: 'CloseAdapterCompleteHandler' : is not a
member of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(33) : error C2039: 'SendCompleteHandler' : is not a member
of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(34) : error C2039: 'TransferDataCompleteHandler' : is not a
member of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(35) : error C2039: 'ResetCompleteHandler' : is not a member
of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(36) : error C2039: 'RequestCompleteHandler' : is not a memb
er of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(37) : error C2039: 'ReceiveHandler' : is not a member of '_
NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(38) : error C2039: 'ReceiveCompleteHandler' : is not a memb
er of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(39) : error C2039: 'StatusHandler' : is not a member of '_N
DIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(40) : error C2039: 'StatusCompleteHandler' : is not a membe
r of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(41) : error C2039: 'BindAdapterHandler' : is not a member o
f '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(42) : error C2039: 'UnBindAdapterHandler' : is not a member
of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(43) : error C2039: 'UnloadHandler' : is not a member of '_N
DIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(44) : error C2039: 'ReceivePacketHandler' : is not a member
of '_NDIS50_PROTOCOL_CHARACTERISTICS'
1>c:\driver\init.cpp(45) : error C2039: 'PnPEventHandler' : is not a member of '
_NDIS50_PROTOCOL_CHARACTERISTICS'
Linking Executable - objchk_wxp_x86\i386\example.sys
1>link : error LNK1181: cannot open input file 'c:\driver\objchk_wxp_x86\i386\in
it.obj'
BUILD: Finish time: Wed Jun 09 12:05:37 2010
BUILD: Done
3 files compiled - 19 Errors - 641 LPS
1 executable built - 1 Error
C:\Driver>
Использую следующий source файл:
TARGETNAME=Example
TARGETTYPE=DRIVER
!if "$(DDK_TARGET_OS)"=="Win2K"
#
# The driver is built in the Win2K build environment
#
C_DEFINES=$(C_DEFINES) -DNDIS40=1
!else
#
# The driver is built in the XP or .NET build environment
# So let us build NDIS 5.1 version.
#
C_DEFINES=$(C_DEFINES) -DNDIS51=1
!endif
TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib
TARGETPATH=obj
SOURCES=init.cpp
Пожалуйста помогите разобраться !!!