# Function Reference

# _WinAPI_SetDefaultPrinter

Sets the default printer for the current user on the local computer

#include <WinAPISys.au3>
_WinAPI_SetDefaultPrinter ( $sPrinter )

## Parameters

$sPrinter | The default printer name. For a remote printer, the name format is \\server\printername. For a local printer, the name format is printername. If this parameter is "", this function does nothing if there is already a default printer. However, if there is no default printer, this function sets the default printer to the first printer, if any, in an enumeration of printers installed on the local computer.

## Return Value

Success: | True
Failure: | False

## See Also

Search SetDefaultPrinter in MSDN Library.