Function Reference


Retrieves the printer name of the default printer for the current user on the local computer

#include <WinAPISys.au3>
_WinAPI_GetDefaultPrinter ( )

Return Value

Success: String containing the default printer name.
Failure: Empty string and sets the @error flag to non-zero, @extended may contains system error:
2 - No default printer

See Also

Search GetDefaultPrinter in MSDN Library.