L_EpnUnlockOEMPrinter

#include "l_eprint.h"

L_INT EXT_FUNCTION L_EpnUnlockOEMPrinter (pszPrinterName, pszPassword)

L_CHAR L_FAR * pszPrinterName;

/* OEM printer name */

L_CHAR L_FAR * pszPassword;

/* OEM administration password */

Unlocks a specified OEM printer, enabling applications to print directly to it.

Parameter

Description

pszPrinterName

Character string that contains the OEM printer name.

pszPassword

Character string that contains the OEM administration password.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Support for OEM functionality must be unlocked by calling the L_EpnUnlockSupport function before using this function.

This function unlocks an OEM printer that was previously locked using the L_EpnLockOEMPrinter function.

Call this function to unlock the OEM printer. OEM printers are installed by calling L_EpnInstallOEMPrinter. When L_EpnInstallOEMPrinter was called, the string passed to the pszPassword parameter must be the same as the string set in the pszOEMPassword member of the EPNOEMPRINTERINFO structure.

Required DLLs and Libraries

LPKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to ePrint Files.

See Also

Functions:

L_EpnUnlockSupport, L_EpnLockOEMPrinter, L_EpnIsOEMPrinterLocked L_EpnCreateSaveDC, L_EpnCreateRedirectionDC, L_EpnCreateEmailDC, L_EpnInstallOEMPrinter, L_EpnUninstallOEMPrinter

Topics:

ePrint: Locking and Unlocking OEM Printers

 

Using the OEM Version of ePrint

Types of Printers

Example

For an example, refer to L_EpnIsOEMPrinterLocked.