The information in this article applies to:
SUMMARY
To set the default printer programmatically under Windows 95, use the
SetPrinter() Win32 API function.
MORE INFORMATIONTo set or change the default printer under Windows 95, call:
Obtain the hPrinter parameter from OpenPrinter() as a handle that
identifies the desired printer. Set the dwLevel parameter to 5, and point
lpbPrinter to the PRINTER_INFO_5 structure. Set the dwCommand parameter to
0 (zero). Fill out the PRINTER_INFO_5 structure appropriately making sure that the
Attributes field has PRINTER_ATTRIBUTE_DEFAULT set.
Additional query words:
Keywords : kbenv kbWinOS95 kbDSupport |
Last Reviewed: June 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |