Identifier 'GetFontResourceInfoW' is undefined

  • Thread starter Thread starter kboswell
  • Start date Start date
K

kboswell

Guest
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

Continue reading...
 
Back
Top