DrvDeviceCapabilities function

A printer interface DLL's DrvDeviceCapabilities function returns requested information about a printer's capabilities.

Syntax

DWORD DrvDeviceCapabilities(
  HANDLE   hPrinter,
  PWSTR    pszDeviceName,
  WORD     Capability,
  PVOID    pOutput,
  PDEVMODE pDevmode
);

Parameters

hPrinter

Caller-supplied printer handle.

pszDeviceName

Capability

pOutput

pDevmode

Return Value

The function's return value is dependent on the value received for the iDevCap parameter. If the received iDevCap value represents a capability that the driver does not support, or if an error is encountered, the function should return GDI_ERROR.

Requirements

   
Target Platform Desktop
Header winddiui.h (include Winddiui.h)