Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2004

Tip: Looking for answers? Try searching our database.

accessing remote print queue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rayudu - 17 Jun 2004 07:30 GMT
Hi,
I've to get the queue details from the remote printers in th
network.How can I identify those automatically and get the details o
those using vc++?
I know how to do this for the local printer n its not working if I giv
"\\\\servername\\printer name".
I tried EnumPrinters() also but its working for PRINTER_ENUM_NETWORK
_REMOTE with PRINTER_INFO_1 structure only n this structure is no
giving the printer name for NT systems.
So,pls help me as the submission date for my module is nearing by.

Pls reply me asap.

Thank you verymuch in advance.
Regards,
Rayudu
William DePalo [MVP VC++] - 17 Jun 2004 17:30 GMT
> I've to get the queue details from the remote printers in the
> network.

You can try WNetEnumConnections() and filter out those items which are not
of the print resource type.

> I know how to do this for the local printer n its not working if I give
> "\\\\servername\\printer name".
> I tried EnumPrinters() also but its working for PRINTER_ENUM_NETWORK n
> _REMOTE with PRINTER_INFO_1 structure only n this structure is not
> giving the printer name for NT systems.

You may want to post a short snippet of problematic code in the GDI group.

Regards,
Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.