标识符'GetFontResourceInfoW'未定义 [英] Identifier 'GetFontResourceInfoW' is undefined
问题描述
我对Windows编程很新。但我需要搞乱外部字体文件,并且我遇到了几个建议使用未记录的函数GetFontResourceInfoW从外部字体文件中获取字体名称的来源。问题
是,我在任何已安装的标头中都找不到该定义。我正在使用Visual Studio 2017和Windows SDK 10.0.17134.0。
我也是PowerShell的新手,所以如果我在这里做错了,请耐心等待。但是我用这个命令来搜索头文件的定义:
PS C:\Program Files(x86)\ Windows Kits \10\Include \\ \\10.0.17134.0> Get-ChildItem -Recurse -Filter * .h | Select-String -Pattern AddFontRes |小组路径|选择姓名
使用未记录的API函数并不好。它们可能会被删除或更改而无需进一步记录。
在这里您可以找到所需的信息:
http://www.undocprint.org/winspool/getfontresourceinfo
关于你的Powershell问题,你应该在powershell部分,不在C ++部分。 https://social.technet.microsoft.com/forums/en-us/home?forum=winserverpowershell
I'm fairly new to Windows programming. But I have a need to mess around with external font files and I've encountered several sources that recommend using the undocumented function GetFontResourceInfoW to get font names from external font files. The problem is, I can't find that definition in any of the installed headers. I'm using Visual Studio 2017 and Windows SDK 10.0.17134.0.
I'm also new to PowerShell, so please bear with me if I did something wrong here. But I used this command to search header files for the definition:
PS C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0> Get-ChildItem -Recurse -Filter *.h | Select-String -Pattern AddFontRes | group path | select name
At all it is not good using undocumented API functions. They may be deleted or altered without any further note.
Here you may find the information you need:
http://www.undocprint.org/winspool/getfontresourceinfo
Regarding your Powershell question, you should ask in the powershell section, not in the C++ section.https://social.technet.microsoft.com/forums/en-us/home?forum=winserverpowershell
这篇关于标识符'GetFontResourceInfoW'未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!