Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

L_PrnLockPrinter

Show in webframe

#include "Ltprinter.h"

L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnLockPrinter(pszPrinterName, pszPassword)

L_TCHAR * pszPrinterName;

/* printer name */

L_TCHAR * pszPassword;

/* printer administration password */

Locks the specified LEADTOOLS Virtual Printer Driver to prevent applications from directly printing to it.

Parameter

Description

pszPrinterName

Character string that contains the printer name.

pszPassword

Character string that contains the printer administration password.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The value of pszPassword parameter must be the same as the value of PRNPRINTERINFO.pszPassword member, when the printer was installed using the L_PrnInstallPrinter function.

To unlock the specified LEADTOOLS Virtual Printer Driver and enable applications to print directly to it, call the L_PrnUnlockPrinter function.

To check whether applications were prevented from directly printing to the specified LEADTOOLS Virtual Printer Driver, call the L_PrnIsPrinterLocked function.

Required DLLs and Libraries

LTPRINTER

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your LEADTOOLS Virtual Printer Driver Application.

Platforms

Win32, x64.

See Also

Functions:

L_PrnUnlockPrinter, L_PrnIsPrinterLocked, L_PrnInstallPrinter, L_PrnUninstallPrinter

Topics:

LEADTOOLS Virtual Printer: Locking and Unlocking LEADTOOLS Virtual Printer Drivers

 

Working with the LEADTOOLS Virtual Printer Driver

Example

For an example, refer to L_PrnInstallPrinter.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.