L_PrnUnlockPrinter
#include "Ltprinter.h"
L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnUnlockPrinter(pszPrinterName, pszPassword)
L_TCHAR * pszPrinterName; |
/* printer name */ |
L_TCHAR * pszPassword; |
/* printer administration password */ |
Unlocks the specified LEADTOOLS Virtual Printer Driver and enables applications to print directly 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
This function unlocks a LEADTOOLS Virtual Printer Driver that was previously locked using the L_PrnLockPrinter function.
The value of pszPassword parameter must be the same as the value of PRNPRINTERINFO.pszPassword member, when the printer was installed using L_PrnInstallPrinter 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. |
See Also
Functions: |
L_PrnLockPrinter, L_PrnIsPrinterLocked, L_PrnInstallPrinter, L_PrnUninstallPrinter |
Topics: |
LEADTOOLS Virtual Printer: Locking and Unlocking LEADTOOLS Virtual Printer Drivers |
|
Example
For an example, refer to L_PrnInstallPrinter.