Click here to Skip to main content
15,918,404 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)

Hi everyone,
I am trying to enumerate all printers connected to a machine using an API EnumPrinters() but unfortunately this API does not give list of all printers if it is called from a service.
Does anyone have any idea why this is happening? or Any other alternative to fulfil the objective.
THANX in advance.
Maciej Los 9-Oct-14 1:49am    
What language?
What have you done till now (share your code)?

1 solution

Hello ,
If you are using .Net framework and using C#/C++/F# or VB then
Refer link :
Gets the names of all printers installed on the computer.

Share this answer
shyam3898 20-Oct-14 3:13am    
No, actually I am not using .Net framework.
Animesh Datta 20-Oct-14 6:28am    
Then what language you are using ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900