DeviceCapabilities Function Sample Code

ID: Q81245


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


SUMMARY

PRNDRV is a file in the Microsoft Software Library that demonstrates all the options of the DeviceCapabilities() function provided by printer drivers in the Windows 3.1 environment. PRNDRV retrieves printer information and displays it on the screen.


MORE INFORMATION

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


Prndrv.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.



The DeviceCapabilities() function provides information about the following printer features:

  • Information about the printer driver (driver size, driver date, driver version)


  • Information about the paper (paper sizes, paper extents, and so forth)


  • Information about the paper bins (bin numbers, bin types, named bins, and so forth)


  • Information from the DEVMODE structure (all header and device- independent information)


Additional query words: softlib PRNDRV.EXE kbfile

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


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