TE Edit Control Win32 / Win64 Help
Product page

TerSetPrinter

Set new printer selection information.

BOOL TerSetPrinter(hWnd, device, driver, port, hInitDevMode)
HWND hWnd;Window handle to access
LPBYTE device;New printer name. Set to NULL to use the default printer name.
LPBYTE driver;New printer driver name. Set to NULL to use the default printer driver.
LPBYTE port;New printer port. Set to NULL to use the default printer port
HGLOBAL hInitDevMode;Initial printer setup information structure. Set to NULL to use the default printer initialization information. In some programming environments, set this parameter to zero when using this function as exported through toc30.ocx

Description: This function is used to set the new printer selection information. In many cases you need only supply a valid printer name leaving all other parameters NULL.

Return Value: The function returns a TRUE value when successful..