请教各位大侠 我调用DDK2600中的IFS目录下的fcb.h,需要使用FCB这个结构体
#include <C:\WINDDK\2600\inc\ifs\fcb.h>
但是编译的时候却出现了很多错误,是不是DDK还没有把这个模块做好,错误越改越多
1>Compiling - sfilter.c for i386
1>c:\winddk\2600\inc\ifs\fcbtable.h(32) : error C2061: syntax error : identifier
'NODE_TYPE_CODE'
1>c:\winddk\2600\inc\ifs\fcbtable.h(33) : error C2061: syntax error : identifier
'NodeByteSize'
1>c:\winddk\2600\inc\ifs\fcbtable.h(33) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(46) : error C2059: syntax error : '}'
1>c:\winddk\2600\inc\ifs\fcbtable.h(54) : error C2061: syntax error : identifier
'NODE_TYPE_CODE'
1>c:\winddk\2600\inc\ifs\fcbtable.h(55) : error C2061: syntax error : identifier
'NodeByteSize'
1>c:\winddk\2600\inc\ifs\fcbtable.h(55) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(72) : error C2061: syntax error : identifier
'pTableEntryForNull'
1>c:\winddk\2600\inc\ifs\fcbtable.h(72) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(76) : error C2059: syntax error : '}'
1>c:\winddk\2600\inc\ifs\fcbtable.h(80) : error C2146: syntax error : missing ')
' before identifier 'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(80) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(80) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(80) : error C2143: syntax error : missing ')
' before 'identifier'
1>c:\winddk\2600\inc\ifs\fcbtable.h(80) : error C2061: syntax error : identifier
'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(80) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(80) : error C2059: syntax error : ','
1>c:\winddk\2600\inc\ifs\fcbtable.h(81) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\fcbtable.h(85) : error C2146: syntax error : missing ')
' before identifier 'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(85) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(85) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(85) : error C2143: syntax error : missing ')
' before 'identifier'
1>c:\winddk\2600\inc\ifs\fcbtable.h(85) : error C2061: syntax error : identifier
'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(85) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(85) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\fcbtable.h(88) : error C2061: syntax error : identifier
'RxFcbTableLookupFcb'
1>c:\winddk\2600\inc\ifs\fcbtable.h(88) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(89) : error C2146: syntax error : missing ')
' before identifier 'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(89) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(89) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(89) : error C2143: syntax error : missing ')
' before 'identifier'
1>c:\winddk\2600\inc\ifs\fcbtable.h(89) : error C2061: syntax error : identifier
'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(89) : error C2059: syntax error : ','
1>c:\winddk\2600\inc\ifs\fcbtable.h(90) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\fcbtable.h(94) : error C2146: syntax error : missing ')
' before identifier 'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(94) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(94) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(94) : error C2143: syntax error : missing ')
' before 'identifier'
1>c:\winddk\2600\inc\ifs\fcbtable.h(94) : error C2061: syntax error : identifier
'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(94) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(94) : error C2059: syntax error : ','
1>c:\winddk\2600\inc\ifs\fcbtable.h(95) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\fcbtable.h(99) : error C2146: syntax error : missing ')
' before identifier 'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(99) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(99) : error C2144: syntax error : '<Unknown>
' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\fcbtable.h(99) : error C2143: syntax error : missing ')
' before 'identifier'
1>c:\winddk\2600\inc\ifs\fcbtable.h(99) : error C2061: syntax error : identifier
'pFcbTable'
1>c:\winddk\2600\inc\ifs\fcbtable.h(99) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\fcbtable.h(99) : error C2059: syntax error : ','
1>c:\winddk\2600\inc\ifs\fcbtable.h(100) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\buffring.h(70) : error C2061: syntax error : identifier
'PSRV_CALL'
1>c:\winddk\2600\inc\ifs\buffring.h(71) : error C2061: syntax error : identifier
'pSrvOpen'
1>c:\winddk\2600\inc\ifs\buffring.h(71) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(75) : error C2059: syntax error : '}'
1>c:\winddk\2600\inc\ifs\buffring.h(99) : error C2061: syntax error : identifier
'RX_WORK_QUEUE_ITEM'
1>c:\winddk\2600\inc\ifs\buffring.h(100) : error C2061: syntax error : identifie
r 'HandlerWorkItem'
1>c:\winddk\2600\inc\ifs\buffring.h(100) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(101) : error C2061: syntax error : identifie
r 'LastChanceHandlerWorkItem'
1>c:\winddk\2600\inc\ifs\buffring.h(101) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(105) : error C2059: syntax error : '}'
1>c:\winddk\2600\inc\ifs\buffring.h(119) : error C2146: syntax error : missing '
)' before identifier 'pSrvCall'
1>c:\winddk\2600\inc\ifs\buffring.h(119) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(119) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(119) : error C2143: syntax error : missing '
)' before 'identifier'
1>c:\winddk\2600\inc\ifs\buffring.h(119) : error C2061: syntax error : identifie
r 'pSrvCall'
1>c:\winddk\2600\inc\ifs\buffring.h(119) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(119) : error C2059: syntax error : ','
1>c:\winddk\2600\inc\ifs\buffring.h(120) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\buffring.h(124) : error C2146: syntax error : missing '
)' before identifier 'pSrvCall'
1>c:\winddk\2600\inc\ifs\buffring.h(124) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(124) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(124) : error C2143: syntax error : missing '
)' before 'identifier'
1>c:\winddk\2600\inc\ifs\buffring.h(124) : error C2061: syntax error : identifie
r 'pSrvCall'
1>c:\winddk\2600\inc\ifs\buffring.h(124) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(124) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\buffring.h(128) : error C2146: syntax error : missing '
)' before identifier 'pFcb'
1>c:\winddk\2600\inc\ifs\buffring.h(128) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(128) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(128) : error C2143: syntax error : missing '
)' before 'identifier'
1>c:\winddk\2600\inc\ifs\buffring.h(128) : error C2061: syntax error : identifie
r 'pFcb'
1>c:\winddk\2600\inc\ifs\buffring.h(128) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(128) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\buffring.h(132) : error C2146: syntax error : missing '
)' before identifier 'pSrvOpen'
1>c:\winddk\2600\inc\ifs\buffring.h(132) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(132) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(132) : error C2143: syntax error : missing '
)' before 'identifier'
1>c:\winddk\2600\inc\ifs\buffring.h(132) : error C2061: syntax error : identifie
r 'pSrvOpen'
1>c:\winddk\2600\inc\ifs\buffring.h(132) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(132) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\buffring.h(136) : error C2146: syntax error : missing '
)' before identifier 'pSrvOpen'
1>c:\winddk\2600\inc\ifs\buffring.h(136) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(136) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(136) : error C2143: syntax error : missing '
)' before 'identifier'
1>c:\winddk\2600\inc\ifs\buffring.h(136) : error C2061: syntax error : identifie
r 'pSrvOpen'
1>c:\winddk\2600\inc\ifs\buffring.h(136) : error C2059: syntax error : ';'
1>c:\winddk\2600\inc\ifs\buffring.h(136) : error C2059: syntax error : ')'
1>c:\winddk\2600\inc\ifs\buffring.h(140) : error C2146: syntax error : missing '
)' before identifier 'pSrvOpen'
1>c:\winddk\2600\inc\ifs\buffring.h(140) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(140) : error C2144: syntax error : '<Unknown
>' should be preceded by '<Unknown>'
1>c:\winddk\2600\inc\ifs\buffring.h(140) : error C2143: syntax error : missing '
)' before 'identifier'
1>c:\winddk\2600\inc\ifs\buffring.h(140) : error C2061: syntax error : identifie
r 'pSrvOpen'
1>c:\winddk\2600\inc\ifs\buffring.h(140) : error C1003: error count exceeds 100;
stopping compilation
BUILD: Compile errors: not linking c:\winddk\sfilter directory
BUILD: Done
到最后越改越多,甚至报错说
PVOID
RxPrefixTableLookupName(
IN PRX_PREFIX_TABLE ThisTable,
IN PUNICODE_STRING CanonicalName,
OUT PUNICODE_STRING RemainingName,
IN PRX_CONNECTION_ID ConnectionId
);
函数中第二个参数之前缺少;
奇怪 库中的API不能直接调用吗