错误 12 error LNK2001: 无法解析的外部符号 "__declspec(dllimport) long __stdcall NtQuerySystemInformation(enum _SYSTEM_INFORMATION_CLASS,void *,unsigned long,unsigned long *)" (__imp_?NtQuerySystemInformation@@YGJW4_SYSTEM_INFORMATION_CLASS@@PAXKPAK@Z)
函数声明为:NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemInformation(
__in SYSTEM_INFORMATION_CLASS SystemInformationClass,
__out_bcount_opt(SystemInformationLength) PVOID SystemInformation,
__in ULONG SystemInformationLength,
__out_opt PULONG ReturnLength
);
使用了stdcll 和__declspec(dllimport)为什么生成的导入形式还是 (__imp_?NtQuerySystemInformation@@YGJW4_SYSTEM_INFORMATION_CLASS@@PAXKPAK@Z)
这样就没有办法在ntdll.lib中导入 应该生成的形式是__imp_NtQuerySystemInformation@16
求解需要怎么设置