LEADTOOLS Raster Imaging C DLL Help > Function References > l_prnsetenablenetworkprinting |
#include "Ltprinter.h"
L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnSetEnableNetworkPrinting(pszPrinterName, bEnable)
L_TCHAR * pszPrinterName; |
/* printer name */ |
L_BOOL bEnable; |
/* boolean flag */ |
Locks the specified LEADTOOLS Network Virtual Printer Driver to prevent applications from printing directly to it.
Parameter |
Description |
|
pszPrinterName |
Character string that contains the printer name. |
|
bEnable |
Flag that indicates whether to enable or disable the network printing. Possible values are: |
|
|
Value |
Meaning |
|
TRUE |
Enable network printing. |
|
FALSE |
Disable network printing. This is the default value. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This function, enable or disables the network printing feature for the specified printer.
Required DLLs and Libraries
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your LEADTOOLS Network Virtual Printer Driver Server Application.. |
Win32, x64.
See Also
Example
For an Example, refer to L_PrnGetRemoteData