L_PrnIsPrinterLocked

Summary

Indicates whether the specified LEADTOOLS Virtual Printer Driver is locked.

Syntax

#include "Ltprinter.h"

L_LTPRINTER_API L_INT EXT_FUNCTIONL_PrnIsPrinterLocked(pszPrinterName, pbLocked)

Parameters

L_TCHAR * pszPrinterName

Character string that contains the LEADTOOLS Virtual Printer Driver name.

L_BOOL * pbLocked

Pointer to a variable to be updated with the locking status of the specified LEADTOOLS Virtual Printer Driver.  Possible values are:

Value Meaning
TRUE LEADTOOLS Virtual Printer Driver is locked.
FALSE LEADTOOLS Virtual Printer Driver is unlocked.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function checks whether applications were prevented from directly printing to the specified LEADTOOLS Virtual Printer Driver.

To lock the specified LEADTOOLS Virtual Printer Driver, call the L_PrnLockPrinter function.

To unlock the specified LEADTOOLS Virtual Printer Driver, call the L_PrnUnlockPrinter function.

LEADTOOLS Virtual Printer Drivers are installed by calling L_PrnInstallPrinter.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to L_PrnInstallPrinter.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Virtual Printer C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.