DrvSplDeviceCaps function

A printer interface DLL's DrvSplDeviceCaps function queries a printer for its capabilities.

Syntax

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

Parameters

hPrinter

Caller-supplied handle to the printer.

pszDeviceName

TBD

Capability

TBD

pOutput

TBD

cchBufSize

TBD

pDevmode

TBD

Return Value

The return value depends on the DeviceCap parameter. If DeviceCap indicates a capability that the driver does not support, or if an error is encountered, the function should return GDI_ERROR.

Remarks

The DrvSplDeviceCaps function is available in Microsoft Windows Server 2003 and later.

For descriptions of the DC_XXX flags, see DrvDeviceCapabilities.

This function must be defined in the .def file as DrvSplDeviceCaps @ 254, because the spooler uses the ordinal number 254 to obtain the driver function pointer.

Requirements

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

See Also

DrvDeviceCapabilities