LockPrinter¶
Description
Locks all data transmission and hardware reset requests from other processes to the printer.
Syntax
ErrorCode LockPrinter( int timeout )
Parameter
timeout
Timeout period
Specify the time to wait for success of this API in milliseconds (ms).
The valid range is from 3000 to 90000.
When the value is specified less than 3000, the time is set to 3000 ms.
When the value is specified more than 90000, time is set to 90000 ms.
Return value
Returns an error code. See "Error Code List" for details of the error code.
Remarks
- By this API, multiple locking is possible up to 99 times. In order to release the lock, call UnlockPrinter the same number of times as for this API.