diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index e069a3746..aa0e6fc5d 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2003-10-02 Luke Dunstan + + * include/winspool.h (GetDefaultPrinter[AW]): Add functions. + * lib/winspool.def (GetDefaultPrinter[AW]): Add stubs. + 2003-10-01 Danny Smith * include/winnt.h (INVALID_FILE_ATTRIBUTES): Fix define. diff --git a/winsup/w32api/include/winspool.h b/winsup/w32api/include/winspool.h index 83137c6f6..cc803ca27 100644 --- a/winsup/w32api/include/winspool.h +++ b/winsup/w32api/include/winspool.h @@ -612,6 +612,10 @@ BOOL WINAPI FindClosePrinterChangeNotification(HANDLE); HANDLE WINAPI FindFirstPrinterChangeNotification(HANDLE,DWORD,DWORD,PVOID); HANDLE WINAPI FindNextPrinterChangeNotification(HANDLE,PDWORD,PVOID,PVOID*); BOOL WINAPI FreePrinterNotifyInfo(PPRINTER_NOTIFY_INFO); +#if _WIN32_WINNT >= 0x0500 +BOOL WINAPI GetDefaultPrinterA(LPSTR,LPDWORD); +BOOL WINAPI GetDefaultPrinterW(LPWSTR,LPDWORD); +#endif BOOL WINAPI GetFormA(HANDLE,LPSTR,DWORD,PBYTE,DWORD,PDWORD); BOOL WINAPI GetFormW(HANDLE,LPWSTR,DWORD,PBYTE,DWORD,PDWORD); BOOL WINAPI GetJobA(HANDLE,DWORD,DWORD,PBYTE,DWORD,PDWORD); @@ -698,6 +702,7 @@ typedef PRINTER_DEFAULTSW PRINTER_DEFAULTS,*PPRINTER_DEFAULTS,*LPPRINTER_DEFAULT #define EnumPrinters EnumPrintersW #define EnumPrintProcessorDatatypes EnumPrintProcessorDatatypesW #define EnumPrintProcessors EnumPrintProcessorsW +#define GetDefaultPrinter GetDefaultPrinterW #define GetForm GetFormW #define GetJob GetJobW #define GetPrinter GetPrinterW @@ -762,6 +767,7 @@ typedef PRINTER_DEFAULTSA PRINTER_DEFAULTS,*PPRINTER_DEFAULTS,*LPPRINTER_DEFAULT #define EnumPrinters EnumPrintersA #define EnumPrintProcessorDatatypes EnumPrintProcessorDatatypesA #define EnumPrintProcessors EnumPrintProcessorsA +#define GetDefaultPrinter GetDefaultPrinterA #define GetForm GetFormA #define GetJob GetJobA #define GetPrinter GetPrinterA diff --git a/winsup/w32api/lib/winspool.def b/winsup/w32api/lib/winspool.def index 66d315a28..b6375b174 100644 --- a/winsup/w32api/lib/winspool.def +++ b/winsup/w32api/lib/winspool.def @@ -85,6 +85,8 @@ FindClosePrinterChangeNotification@4 FindFirstPrinterChangeNotification@16 FindNextPrinterChangeNotification@16 FreePrinterNotifyInfo@4 +GetDefaultPrinterA@8 +GetDefaultPrinterW@8 GetFormA@24 GetFormW@24 GetJobA@24