17.4 Determining the Capabilities of the Printer Driver

You can use the DeviceCapabilities function to determine the capabilities of a particular printer, including which DEVMODE members the driver supports. For example, if your application must print in landscape orientation, it might call DeviceCapabilities to determine whether the current printer supports landscape orientation.

For more information about the DeviceCapabilities function, see the Microsoft Windows Programmer's Reference, Volume 2.