dAddPrinterDriver

Adds the specified printer driver to the system.

 

LONG            dAddPrinterDriver(HWND MainWnd, LPLONG lpLong, LPSTR lpStrTemp)

 

Input value: MainWnd                   - handle to a window

Input value: lpLong                                   - pointer to a long value. Not used, the value can be 0.

Input value: lpStrTemp                 - the name of the driver to be installed

Return value                                                - Returns 1 if the driver is already installed. Returns

error code to be passed to GetLastError() if adding the driver failed. Returns 0 on success.

 

NOTE:  This function is outdated, no longer recommended.