Skip to content

SetProperty

Description

Changes a part of the print settings.

Syntax

  
    INT SetProperty( INT i_hdl, LPDEVMODE i_devmode, BYTE i_pid, LPBYTE i_dat, LPDWORD i_size )
  

Parameter

i_hdl

API handle
Specify the API handle retrieved by OpenMonPrinter.

i_devmode

Devmode address
Specify the Devmode address.

i_pid

Property ID
Specify the property ID of the print settings to be changed.
See "Property ID" for specifiable values.

i_dat

Buffer of data to set
Specify the buffer in which the print settings to be changed is stored.

i_size

Size of data to set
Specify the buffer size in which the print settings to be changed is stored.

Return value

On success: Returns 0.
On failure: Returns an error code. See "Error Code List" for details of the error code.