RestoreDefaultPrinter

<< Click to Display Table of Contents >>

Navigation:  Printing Process > IPXCPrinter Interface > Functions >

RestoreDefaultPrinter


 

DAPI_ICON_ RestoreDefaultPrinter

 


 

The RestoreDefaultPrinter function is used to restore previous default printers that the SetAsDefaultPrinter function was used to override. If the SetAsDefaultPrinter function has not been previously called then this function will be ignored. Please note that declarations are case-sensitive:

 

Declaration

 

C#

 

void RestoreDefaultPrinter();

 

C++

 

HRESULT RestoreDefaultPrinter();

 

VB

 

Sub RestoreDefaultPrinter()

 

Return Values

 

If the function fails then the return value is an error code.

 

If the function succeeds then the return value is S_OK.