Windows 哪些设置阻止包含AllocSole?

Windows 哪些设置阻止包含AllocSole?,windows,visual-studio,Windows,Visual Studio,我在VS2015中创建了一个新的windows通用dll项目。我试图使用alloconsole()创建控制台窗口,但出现了错误 error C3861: 'FreeConsole': identifier not found error C3861: 'AllocConsole': identifier not found error C2065: 'FILE': undeclared identifier error C2065: 'stream': undeclared identifier

我在VS2015中创建了一个新的windows通用dll项目。我试图使用alloconsole()创建控制台窗口,但出现了错误

error C3861: 'FreeConsole': identifier not found
error C3861: 'AllocConsole': identifier not found
error C2065: 'FILE': undeclared identifier
error C2065: 'stream': undeclared identifier
error C2065: 'stream': undeclared identifier
error C2065: 'stdout': undeclared identifier
error C3861: 'freopen_s': identifier not found
这是在包括windows.h、wincon.h和consoleapi.h之后(不确定这是什么,F12带我去了)


我猜是项目设置使其无法工作?

“新windows通用dll项目”使其无法工作,您不能在UWP应用程序中使用控制台。与大量其他winapi函数一起,这些函数与使用小电池的移动设备不兼容。谢谢,我完全不知道这一点。我认为这只是一个新的向导路径到相同的旧东西。特别地,选择旧的win32项目类型并选择DLL使我能够创建一个未被阉割的项目。