包含Ntsecpkg.h头文件,为什么报错?

flymaster 2001-12-27 11:07:53
我在用MFC编写的dll中,StdAfx.h里包含了SDK的Ntsecpkg.h,可是编译报错:

--------------------Configuration: SignVer - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
h:\microsoft sdk\include\ntsecpkg.h(200) : error C2059: syntax error : '__stdcall'
h:\microsoft sdk\include\ntsecpkg.h(202) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(207) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(213) : error C2061: syntax error : identifier 'PLSA_STRING'
h:\microsoft sdk\include\ntsecpkg.h(215) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(223) : error C2061: syntax error : identifier 'PLSA_STRING'
h:\microsoft sdk\include\ntsecpkg.h(226) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(232) : error C2061: syntax error : identifier 'PLSA_STRING'
h:\microsoft sdk\include\ntsecpkg.h(233) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(260) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(266) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(274) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(282) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(284) : error C2143: syntax error : missing ';' before '*'
h:\microsoft sdk\include\ntsecpkg.h(284) : error C2501: 'PLSA_CREATE_LOGON_SESSION' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(303) : error C2146: syntax error : missing ';' before identifier 'CreateLogonSession'
h:\microsoft sdk\include\ntsecpkg.h(303) : error C2501: 'PLSA_CREATE_LOGON_SESSION' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(303) : error C2501: 'CreateLogonSession' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(351) : error C2061: syntax error : identifier 'PLSA_STRING'
h:\microsoft sdk\include\ntsecpkg.h(354) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(359) : error C2061: syntax error : identifier 'SECURITY_LOGON_TYPE'
h:\microsoft sdk\include\ntsecpkg.h(371) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(376) : error C2061: syntax error : identifier 'SECURITY_LOGON_TYPE'
h:\microsoft sdk\include\ntsecpkg.h(389) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(399) : error C2061: syntax error : identifier 'PNTSTATUS'
h:\microsoft sdk\include\ntsecpkg.h(400) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(410) : error C2061: syntax error : identifier 'PNTSTATUS'
h:\microsoft sdk\include\ntsecpkg.h(411) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(433) : error C2065: 'PUNICODE_STRING' : undeclared identifier
h:\microsoft sdk\include\ntsecpkg.h(433) : error C2146: syntax error : missing ')' before identifier 'ClearPassword'
h:\microsoft sdk\include\ntsecpkg.h(433) : error C2071: 'PSAM_CREDENTIAL_UPDATE_NOTIFY_ROUTINE' : illegal storage class
h:\microsoft sdk\include\ntsecpkg.h(443) : error C2059: syntax error : ')'
h:\microsoft sdk\include\ntsecpkg.h(449) : error C2146: syntax error : missing ')' before identifier 'CredentialName'
h:\microsoft sdk\include\ntsecpkg.h(449) : error C2071: 'PSAM_CREDENTIAL_UPDATE_REGISTER_ROUTINE' : illegal storage class
h:\microsoft sdk\include\ntsecpkg.h(449) : error C2059: syntax error : ')'
h:\microsoft sdk\include\ntsecpkg.h(525) : error C2146: syntax error : missing ';' before identifier 'PackageName'
h:\microsoft sdk\include\ntsecpkg.h(525) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(525) : error C2501: 'PackageName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(562) : error C2061: syntax error : identifier 'PSecBuffer'
h:\microsoft sdk\include\ntsecpkg.h(564) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(585) : error C2146: syntax error : missing ';' before identifier 'DownlevelName'
h:\microsoft sdk\include\ntsecpkg.h(585) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(585) : error C2501: 'DownlevelName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(586) : error C2146: syntax error : missing ';' before identifier 'DomainName'
h:\microsoft sdk\include\ntsecpkg.h(586) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(586) : error C2501: 'DomainName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(587) : error C2146: syntax error : missing ';' before identifier 'Password'
h:\microsoft sdk\include\ntsecpkg.h(587) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(587) : error C2501: 'Password' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(588) : error C2146: syntax error : missing ';' before identifier 'OldPassword'
h:\microsoft sdk\include\ntsecpkg.h(588) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(588) : error C2501: 'OldPassword' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(591) : error C2146: syntax error : missing ';' before identifier 'DnsDomainName'
h:\microsoft sdk\include\ntsecpkg.h(591) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(591) : error C2501: 'DnsDomainName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(592) : error C2146: syntax error : missing ';' before identifier 'Upn'
h:\microsoft sdk\include\ntsecpkg.h(592) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(592) : error C2501: 'Upn' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(594) : error C2146: syntax error : missing ';' before identifier 'LogonServer'
h:\microsoft sdk\include\ntsecpkg.h(594) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(594) : error C2501: 'LogonServer' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(595) : error C2146: syntax error : missing ';' before identifier 'Spare1'
h:\microsoft sdk\include\ntsecpkg.h(595) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(595) : error C2501: 'Spare1' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(596) : error C2146: syntax error : missing ';' before identifier 'Spare2'
h:\microsoft sdk\include\ntsecpkg.h(596) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(596) : error C2501: 'Spare2' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(597) : error C2146: syntax error : missing ';' before identifier 'Spare3'
h:\microsoft sdk\include\ntsecpkg.h(597) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(597) : error C2501: 'Spare3' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(598) : error C2146: syntax error : missing ';' before identifier 'Spare4'
h:\microsoft sdk\include\ntsecpkg.h(598) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(598) : error C2501: 'Spare4' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(620) : error C2146: syntax error : missing ';' before identifier 'DomainName'
h:\microsoft sdk\include\ntsecpkg.h(620) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(620) : error C2501: 'DomainName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(621) : error C2146: syntax error : missing ';' before identifier 'DnsDomainName'
h:\microsoft sdk\include\ntsecpkg.h(621) : error C2501: 'UNICODE_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(621) : error C2501: 'DnsDomainName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(654) : error C2146: syntax error : missing ';' before identifier 'WowClientDllPath'
h:\microsoft sdk\include\ntsecpkg.h(654) : error C2501: 'SECURITY_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(654) : error C2501: 'WowClientDllPath' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(701) : error C2146: syntax error : missing ';' before identifier 'UserName'
h:\microsoft sdk\include\ntsecpkg.h(701) : error C2501: 'SECURITY_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(701) : error C2501: 'UserName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(702) : error C2146: syntax error : missing ';' before identifier 'LogonDomainName'
h:\microsoft sdk\include\ntsecpkg.h(702) : error C2501: 'SECURITY_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(702) : error C2501: 'LogonDomainName' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(703) : error C2146: syntax error : missing ';' before identifier 'LogonServer'
h:\microsoft sdk\include\ntsecpkg.h(703) : error C2501: 'SECURITY_STRING' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(703) : error C2501: 'LogonServer' : missing storage-class or type specifiers
h:\microsoft sdk\include\ntsecpkg.h(725) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(731) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(736) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(745) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(762) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(780) : error C2091: function returns function
h:\microsoft sdk\include\ntsecpkg.h(784) : error C2065: 'PSecBuffer' : undeclared identifier
h:\microsoft sdk\include\ntsecpkg.h(784) : error C2146: syntax error : missing ')' before identifier 'InputBuffer'
h:\microsoft sdk\include\ntsecpkg.h(784) : warning C4229: anachronism used : modifiers on data are ignored
h:\microsoft sdk\include\ntsecpkg.h(784) : error C2071: 'LSA_MAP_BUFFER' : illegal storage class
h:\microsoft sdk\include\ntsecpkg.h(786) : error C2059: syntax error : ')'
h:\microsoft sdk\include\ntsecpkg.h(786) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

SignVer.dll - 102 error(s), 1 warning(s)

不知道为什么?

...全文
96 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
flymaster 2001-12-27
  • 打赏
  • 举报
回复
帮自己up一下

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧