L_EpnUninstallOEMPrinter

#include "l_eprint.h"

L_INT EXT_FUNCTION L_EpnUninstallOEMPrinter (pOemInfo);

EPNOEMPRINTERINFO L_FAR * pOemInfo;

/* pointer to a structure */

Uninstalls an OEM printer from the system.

Parameter

Description

pOemInfo

Pointer to the EPNOEMPRINTERINFO structure that contains the OEM printer information that was used in installing the OEM printer to the system.

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.

The user should fill the uStructSize, pszOEMMonitorName, pszOEMPortName, and pszOEMDriverName members of the pOemInfo parameter with valid data.

Note that this function will remove all printers that use the driver named in the pszOEMDriverName member of the pOemInfo parameter.

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_EpnUnlockOEMPrinter, L_EpnCreateSaveDC, L_EpnCreateRedirectionDC, L_EpnCreateEmailDC, L_EpnInstallOEMPrinter

Topics:

ePrint: Installing and Uninstalling OEM Printers

 

Using the OEM Version of ePrint

Types of Printers

Example

#define TEST_PRINTER_NAME "Test Printer Name"
   L_VOID UninstallOEM(  ) 
{
   L_EpnUnlockSupport ( "Sample Key", EPN_SUPPORT_OEM ); 
   EPNOEMPRINTERINFO PrinterInfo; 
   ZeroMemory(&PrinterInfo, sizeof( EPNOEMPRINTERINFO ) ); 
   PrinterInfo.uStructSize = sizeof( EPNOEMPRINTERINFO ); 
   PrinterInfo.pszOEMDriverName = "Test Driver Name";
   PrinterInfo.pszOEMPrinterName = TEST_PRINTER_NAME; 
   PrinterInfo.pszOEMMonitorName = NULL;
   PrinterInfo.pszOEMPortName = NULL;
   L_EpnUninstallOEMPrinter(&PrinterInfo ); 
}