Is it possible for metro apps to call APIs in the print spooler API of Win32 ?


i know whether metro apps can call apis in print spooler api of win32 or not , how informations such installer printer drivers , printing jobs monitored.

when testing on developer preview, test app c++ can call print spooler apis such openprinter().

but spooler apis are not listed in apis metro style apps (http://msdn.microsoft.com/en-us/library/windows/apps/br211369.aspx) i’m wondering spooler api can called metro app or not.

also, windows.devices.enumeration namespace (http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.enumeration.aspx) doesn't mentioned printing devices in deviceclass found. have doubt how find out installed printer driver informations such list of print name , related information on metro ui.

if it's not possible call spooler api metro app, how installed printer driver information , print job information via winrt apis?

and how to search actual printers on network via same way windows 8 using upnp ?


hi daniel,

no, cannot call native win32 apis metro app.

please see metro style device app sample provided consumer preview. demonstrates how enumerate print queues using windows.devices.enumeration namespace, , how obtain printerextensioncontext object can make bidi queries status. http://code.msdn.microsoft.com/printer-extension-app-44235a19

we don't support managing print jobs metro style apps. supported from desktop applications, or the microsoft provided print queue window. 

we don't support discovery of unassociated network printers metro style apps, either. in many cases, network sufficiently small , not domain network, wsd printers automatically added, no user action required. otherwise, users can use metro style control panel or devices , printers folder find , add new devices.

thanks!

justin



Archived Forums T-U  >  Tailoring your Windows Store app for hardware and devices (archived)



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........