【发布时间】:2012-10-09 19:36:38
【问题描述】:
我已经从here 下载了传递哈希工具包的源代码。当我使用 Visual Studio Ultimate 2010 编译它时,我会收到以下错误:
findfuncs_msv10.obj : error LNK2019: unresolved external symbol _GetModuleInformation@16 referenced in function _FindMSV10Functions
whosthere-alt.obj : error LNK2019: unresolved external symbol _LsaFreeReturnBuffer@4 referenced in function _GetLogonSessionData
whosthere-alt.obj : error LNK2019: unresolved external symbol _LsaGetlogonSessionData@8 referenced in function _GetLogonSessionData
whosthere-alt.obj : error LNK2019: unresolved external symbol _LsaEnumerateLogonSession@8 referenced in function _main
我该如何解决这个错误,或者是否有其他更好的方法来编译代码。我是 C 的新手,我愿意接受任何建议。
更新:我已经链接了 Secur32.lib 和 Psapi.lib 并且它可以编译。非常感谢
【问题讨论】:
-
你需要包含实现GetModuleInformation()的库
-
你是从这里下载的?那是哪里?
-
这是一个拼写错误,我在oss.coresecurity.com/projects/pshtoolkit.htm得到它
标签: c compiler-errors