DeviceCapabilities Function Sample Code (81245)



The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) 3.1

This article was previously published under Q81245

SUMMARY

PRNDRV is a file in the Microsoft Download Center 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 file is available for download from the Microsoft Download Center:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
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)

Modification Type:MinorLast Reviewed:2/11/2005
Keywords:kbdownload kbdownload kb16bitonly kbfile kbinfo kbsample KB81245