Hi Vidar,
>Does this class work also for NT?
Yep. But some API calls are different on Windows 9x, WinNT and Windows 2000. Additionally, on WinNT you have most API functions in ANSI and Unicode versions. The samples use all the ANSI versions and never pass a security descriptor. It might be necessary to do this on NT.
>How can I use this class to return FONTMETRICS (font attributes) for the installed printer fonts?
There are several functions to get those information, for example GetTextMetric(). You need a device context for the printer for this function. The PrtDemo.Prg sample demonstrates how to get the device context.
Christof
--
Christof