DevMode.exe Changes Printer Parameters from Application

ID: Q51739


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) 3.1


SUMMARY

For an application to use the printer most effectively, sometimes it is necessary for the user to modify the printer settings. To accomplish this, an application can activate the settings dialog box for the printer driver of the currently selected printer.

DEVMODE demonstrates how this may be done. Three steps are required:

  1. Load the printer driver.


  2. Get the procedure address of the "DEVICEMODE" procedure exported by the driver.


  3. Call the procedure through the procedure address.


The settings dialog box is responsible for obtaining any information from the user and for saving any changes in the appropriate ini file.

Chapter 17 of the "Microsoft Windows Software Development Kit Guide to Programming" provides additional information on this procedure.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:


DevMode.exe

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address

http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

Additional query words:

Keywords : kbfile kbsample kbWinOS310 kbDSupport kbSDKWin16
Version : WINDOWS:3.1
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.