Article ID: 81245 - Last Review: February 11, 2005 - Revision: 2.4

DeviceCapabilities Function Sample Code

This article was previously published under Q81245
Expand all | Collapse all

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:
Prndrv.exe (http://download.microsoft.com/download/win31/sample10/1/w31/en-us/prndrv.exe)
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  (http://support.microsoft.com/kb/119591/EN-US/ ) 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)

APPLIES TO
  • Microsoft Windows Software Development Kit 3.1
Keywords: 
kbdownload kbdownload kb16bitonly kbfile kbinfo kbsample KB81245
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations