 |
| How to browse and connect to printers on a network (WinNT) |
User rating: 0/10 (0 votes) | |
|
|
 |
 |
| Before you begin: |
 |
The ConnectToPrinterDlg function -- on which this example is based -- displays a dialog box that lets users browse and connect to printers on a network.

If the user selects a printer, the function attempts to create a connection to it; if a suitable driver is not installed on the server, the user is given the option of creating a printer locally. |
 |
 |
| |
| |
Members area. Log in to view this example. |
|
| |
|
|
|
|
|
 |
User rating: 0/10 (0 votes) | |
| 1952 bytes Created: 2003-01-26 17:05:50 Modified: 2009-01-03 15:26:33 Visits in 7 days: 67 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
A calling application can determine whether the function has created a printer locally by calling GetPrinter with a PRINTER_INFO_2 structure, then examining that structure"s Attributes member.
An application should call DeletePrinter to delete a local printer. An application should call DeletePrinterConnection to delete a connection to a printer.
|
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|