This function can open the printing preferences to change printer driver setting of the last added printer or the printer specified by the third parameter. Changed settings are applied only for the current user.
LONG dPutPropertiesWindow(HWND MainWnd, LPLONG lpLong, LPSTR lpString)
Input value:MainWnd - a window handle
Input value:lpLong - Pointer to a driver type.
Input value:lpString - Printer Name
Return value: -IDOK when next clicked, IDCANCEL when Cancel pressed, IDABORT, or -1 when error happened.