Calling ExtDeviceMode/DeviceCapabilities in Win32s App
This article was previously published under Q132239 SUMMARY
A Win32-based application running under Windows NT or Windows 95 can call
DocumentProperties to change printer settings and DeviceCapabilities to
query printer driver capabilities. But if the Win32-based application is
running under Win32s, it has to load and call printer drivers directly by
using calls such as LoadLibrary, GetProcAddress, ExtDeviceMode, and
DeviceCapabilities.
Win32s handles these two printer driver functions specifically by creating a mapping thunk dynamically. The address returned to the Win32-based application by GetProcAddress is actually the address to the thunk that makes the 32-bit to 16-bit transition and calls the printer driver. The DEVCAP sample shows:
MORE INFORMATIONThe following file is available for download from the Microsoft Download Center: Devcap.exe (http://download.microsoft.com/download/platformsdk/sample9/1/n351/en-us/devcap.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.
APPLIES TO
| Article Translations
| |||||||||||||||||||||||||||||||||||||||||||
Back to the top
