ACC2000: Enumerating Local and Network Printers (200611)
The information in this article applies to:
This article was previously published under Q200611 Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
This article shows you two procedures that use the EnumPrinters API
function to retrieve a list of printers available locally and also those printers on a network that may be connected to your computer.
The procedures demonstrate returning data to both the PRINTER_INFO_1
structure and the PRINTER_INFO_4 structure, each of which provides slightly
different information about the printer. If you are using Microsoft
Windows 95 or later, you can return data to the PRINTER_INFO_1 structure;
if you are using Microsoft Windows NT, you can return data to either
structure.
REFERENCES
For more information about the EnumPrinters function, please refer to the
Win32 SDK.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbnetwork kbprint kbProgramming KB200611 |
---|
|