#include "Ltprinter.h"
L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnUnlockPrinter(pszPrinterName, pszPassword)
Unlocks the specified LEADTOOLS Virtual Printer Driver and enables applications to print directly to it.
Character string that contains the printer's name.
Character string that contains the printer's administrative password.
| Value | Meaning |
|---|---|
| SUCCESS | The function was successful. |
| < 1 | An error occurred. Refer to Return Codes. |
This function unlocks a LEADTOOLS Virtual Printer Driver that was previously locked using the L_PrnLockPrinter function.
The value of the pszPassword parameter must be the same as the value of PRNPRINTERINFO.pszPassword member used when the printer was installed using the L_PrnInstallPrinter function.
Required DLLs and Libraries
Win32, x64.
For an example, refer to L_PrnInstallPrinter.