包含Ntsecpkg.h头文件,为什么报错?
我在用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)
不知道为什么?