Leadtools.Printer Namespace > Printer Class : Lock Method |
function Leadtools.Printer.Printer.Lock( password )
The lock password must be the same as the password that was used when the specified printer was installed.
To unlock the specified printer and enable applications to print directly to it, use the UnLock method.
To check whether applications were prevented from directly printing to the specified printer, use the IsPrinterLocked method.
Only printers that were originally created with a password can be locked.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2