Some APIs do not work when they are called in services in Windows

Applies to: Windows 10, version 1809Windows Server 2019, all versionsWindows 8 More


Assume that you have a 32-bit service on Windows 10, Windows Server 2016, Windows 8, Windows Server 2012, Windows 8.1, or Windows Server 2012 R2. When the service calls a function that requires interaction with CPrintTicket WoW Services, the operation fails. For example, the service cannot call the .NET function GetPrintCapabilitiesAsXml or the equivalent native API function PTGetPrintCapabilities.

Note This issue does not occur when these APIs are called in an .exe file.


To work around this issue, click the Fix it button or link. Then click Run in the File Download dialog box, and follow the steps in the Fix it wizard.