SetRedirectedPrinter

 

#include “BlackIceDEVMODE.h”

 

BOOL SetRedirectedPrinter (BlackIceDEVMODE* pDevMode, LPCWSTR pPrinterName, int iPosition);

Description

Sets the name of the printer that the print job will be redirected to.

Parameters

BlackIceDEVMODE* pDevMode               - pointer to the BlackIceDEVMODE structure.

LPCWSTR pPrinterName                          - This value contains the name of the printer to redirect.

int iPosition                                                   - Zero based integer value. This value indicates which redirect printer name  you want to set.

Return value

TRUE on success otherwise FALSE.

Programming Notes

None

Code Example

None