Help and Support

DeviceCapabilities Function Sample Code

Article ID:81245
Last Review:February 11, 2005
Revision:2.4
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:
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

Back to the top

Keywords: 
kbdownload kbdownload kb16bitonly kbfile kbinfo kbsample KB81245

Article Translations

 

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.