L_PrnUninstallPrinter

Summary

Uninstalls the LEADTOOLS Virtual Printer Driver from the system.

Syntax

#include "Ltprinter.h"

L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnUninstallPrinter(pPrnInfo)

Parameters

PRNPRINTERINFO * pPrnInfo

Pointer to the PRNPRINTERINFO structure that contains the LEADTOOLS Virtual Printer Driver information that was used in installing it to the system.

Returns

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

Comments

Fills the uStructSize, pszMonitorName, and pszPortName members of the pPrnInfo parameter with valid data.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT UninstallPrinterExample() 
{ 
   PRNPRINTERINFO PrnInfo; 
   memset(&PrnInfo, 0, sizeof(PRNPRINTERINFO)); 
   PrnInfo.uStructSize=sizeof(PRNPRINTERINFO); 
   PrnInfo.pszDriverName= TEXT("TEST LEADTOOLS Printer DRIVER"); 
   PrnInfo.pszPrinterName= TEXT("TEST LEADTOOLS Printer"); 
   PrnInfo.pszMonitorName = NULL; 
   PrnInfo.pszPortName = NULL; 
 
   L_INT nRet = L_PrnUninstallPrinter(&PrnInfo ); 
   return nRet; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.