windows核心编程第五版 源代码问题
小弟最近买了一本windows核心编程第五版
在网上下了源代码 但是代码全部编译通过 有些代码不能运行
错误:
无法定位程序输入点 CreatePrivateNamespaceW 于动态链接库 KERNEL32.dll上
注意: 全部都能通过 只是有些不能运行
小弟用的是windows Xp 和vs2008
[解决办法]
看MSDN,需要Vista以后操作系统
Taken from MSDN:
Requirements to use the API CreatePrivateNamespaceW:
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header Winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll
Unicode and ANSI names CreatePrivateNamespaceW (Unicode) and CreatePrivateNamespaceA (ANSI)
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later.
Check your system meets these requirements to use the API CreatePrivateNamespaceW.
[解决办法]