L_EpnFreePrinterUISettings

#include "l_eprint.h"

L_INT EXT_FUNCTION L_EpnFreePrinterUISettings (pUISettings);

EPNUISETTINGS L_FAR * pUISettings;

/* pointer to a structure */

Frees the user interface configuration of an ePrint printer.

Parameter

Description

pUISettings

Pointer to the EPNUISETTINGS structure to free.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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

This function should be called when the user interface configuration settings are no longer needed.

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_EpnGetPrinterUISettings, L_EpnSetPrinterUISettings

Topics:

ePrint: Getting and Setting Printer Specification

 

Setting and Getting ePrint Printer Settings

Example

L_VOID FreeUserInterfaceSettings(  )
{
   EPNUISETTINGS UISettings; 
   ZeroMemory( &UISettings, sizeof( EPNUISETTINGS ) ); 
   UISettings.uStructSize = sizeof( EPNUISETTINGS ); 
   L_EpnGetPrinterUISettings ("Test Printer Name", &UISettings ); 
   UISettings.uShowOptions |= EPN_HIDE_BATCHPRINTERS; 
   L_EpnSetPrinterUISettings ( "Test Printer Name", &UISettings ); 
   L_EpnFreePrinterUISettings( &UISettings ); 
}