GetProperty¶
Description
Gets a part of the print settings.
Syntax
INT GetProperty( INT i_hdl, LPDEVMODE i_devmode, BYTE i_pid, LPBYTE o_dat, LPDWORD io_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 get.
See "Property ID" for specifiable values.
o_dat
Buffer of data to get
Specify the buffer that stores the retrieved print settings.
When NULL is specified, this API fails and the specified data size of the print settings is stored in io_size.
io_size
Size of data to get
Specify the buffer size to store the print settings.
When the control returns from the API, the data size of the retrieved print settings is stored.
When the specified buffer size is smaller than the data size of the print settings to get, this API fails and the specified data size of the print settings is stored.
Return value
Returns 0. On failure: Returns an error code. See "Error Code List" for details of the error code.