winspool: Add documentation and a stub for SetDefaultPrinterA/W.

This commit is contained in:
Detlef Riekenberg 2006-02-20 11:51:04 +01:00 committed by Alexandre Julliard
parent 8167c415ab
commit e267ccfe6e
2 changed files with 46 additions and 2 deletions

View File

@ -4147,6 +4147,50 @@ end:
}
/******************************************************************************
* SetDefaultPrinterW (WINSPOOL.204)
*
* Set the Name of the Default Printer
*
* PARAMS
* pszPrinter [I] Name of the Printer or NULL
*
* RETURNS
* Success: True
* Failure: FALSE
*
* NOTES
* When the Parameter is NULL or points to an Empty String and
* a Default Printer was already present, then this Function changes nothing.
* Without a Default Printer and NULL (or an Empty String) as Parameter,
* the First enumerated local Printer is used.
*
*/
BOOL WINAPI SetDefaultPrinterW(LPCWSTR pszPrinter)
{
TRACE("(%s)\n", debugstr_w(pszPrinter));
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/******************************************************************************
* SetDefaultPrinterA (WINSPOOL.202)
*
* See SetDefaultPrinterW.
*
*/
BOOL WINAPI SetDefaultPrinterA(LPCSTR pszPrinter)
{
TRACE("(%s)\n", debugstr_a(pszPrinter));
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/******************************************************************************
* SetPrinterDataExA (WINSPOOL.@)
*/

View File

@ -6,9 +6,9 @@
105 stub PerfCollect
106 stub PerfOpen
201 stdcall GetDefaultPrinterA(ptr ptr)
202 stub SetDefaultPrinterA
202 stdcall SetDefaultPrinterA(str)
203 stdcall GetDefaultPrinterW(ptr ptr)
204 stub SetDefaultPrinterW
204 stdcall SetDefaultPrinterW(wstr)
205 stub -noname SplReadPrinter
206 stub -noname AddPerMachineConnectionA
207 stub -noname AddPerMachineConnectionW