Skip to content

UnlockPrinter

Description

Unlocks the access prohibition (lock) from other processes by LockPrinter.

Syntax

  
    INT UnlockPrinter( INT i_hdl )
  

Parameter

i_hdl

API handle
Specify the API handle retrieved by OpenMonPrinter.

Return value

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

Remarks

    • When LockPrinter has been called multiple times, this API must be called the same number of times as for LockPrinter in order to release the lock.