Q:

trying to call EnumFontFamilies(...) for a windows store app says it's undefined. Why is that? Are there any alternatives?

I'm trying to have a list of the fonts installed on a Surface.
However, even after including , I can't call EnumFontFamilies.
Why is that? How could I, and if I can't, what can I do to achieve similar functionnality.
Thanks.

A:

From a thread on the Dev Center forums, it looks like you could do this via C++/DirectX as a WinRT component (the code here would be a start).
or take a look at Christophe Wille's WinRT snippets project on GitHub

