CWinApp::SelectPrinter
Visual Studio 2012
Call this member function to select a specific printer, and release the printer that was previously selected in the Print Dialog box.
void SelectPrinter( HANDLE hDevNames, HANDLE hDevMode, BOOL bFreeOld = TRUE );