SAMPLE: Calling ExtDeviceMode/DeviceCapabilities in Win32s AppLast reviewed: July 3, 1997Article ID: Q132239 |
1.25a 4.00 | 3.50
WINDOWS | WINDOWS NTkbprint kbfile The information in this article applies to:
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 appliction 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:
Download DEVCAP.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
|
KBCategory: kbprint kbfile
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |