2005-07-12 19:01:44 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* winspool internal include file
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright 2005 Huw Davies
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-07-12 19:01:44 +02:00
|
|
|
*/
|
|
|
|
|
2009-07-03 01:38:43 +02:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winuser.h>
|
2021-10-26 12:18:07 +02:00
|
|
|
#include <winternl.h>
|
2009-07-03 01:38:43 +02:00
|
|
|
|
2011-05-25 19:09:52 +02:00
|
|
|
extern HINSTANCE WINSPOOL_hInstance DECLSPEC_HIDDEN;
|
2005-07-12 19:01:44 +02:00
|
|
|
|
2011-05-25 19:09:52 +02:00
|
|
|
extern PRINTPROVIDOR * backend DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL load_backend(void) DECLSPEC_HIDDEN;
|
2008-02-04 09:51:38 +01:00
|
|
|
|
2011-05-25 19:09:52 +02:00
|
|
|
extern void WINSPOOL_LoadSystemPrinters(void) DECLSPEC_HIDDEN;
|
2005-07-12 19:01:44 +02:00
|
|
|
|
|
|
|
#define IDS_CAPTION 10
|
|
|
|
#define IDS_FILE_EXISTS 11
|
|
|
|
#define IDS_CANNOT_OPEN 12
|
|
|
|
|
|
|
|
#define FILENAME_DIALOG 100
|
|
|
|
#define EDITBOX 201
|
2021-10-26 12:18:07 +02:00
|
|
|
|
2021-10-26 12:18:10 +02:00
|
|
|
struct printer_info
|
|
|
|
{
|
|
|
|
WCHAR *name;
|
|
|
|
WCHAR *comment;
|
|
|
|
WCHAR *location;
|
|
|
|
BOOL is_default;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct enum_printers_params
|
|
|
|
{
|
|
|
|
struct printer_info *printers;
|
2021-11-09 11:46:02 +01:00
|
|
|
unsigned int *size;
|
|
|
|
unsigned int *num;
|
2021-10-26 12:18:10 +02:00
|
|
|
};
|
|
|
|
|
2021-10-26 12:18:12 +02:00
|
|
|
struct get_default_page_size_params
|
|
|
|
{
|
|
|
|
WCHAR *name;
|
2021-11-09 11:46:02 +01:00
|
|
|
unsigned int *name_size;
|
2021-10-26 12:18:12 +02:00
|
|
|
};
|
|
|
|
|
2021-10-26 12:18:11 +02:00
|
|
|
struct get_ppd_params
|
|
|
|
{
|
|
|
|
const WCHAR *printer; /* set to NULL to unlink */
|
|
|
|
const WCHAR *ppd;
|
|
|
|
};
|
|
|
|
|
2021-10-27 09:14:45 +02:00
|
|
|
struct schedule_job_params
|
|
|
|
{
|
|
|
|
const WCHAR *filename;
|
|
|
|
const WCHAR *port;
|
|
|
|
const WCHAR *document_title;
|
|
|
|
const WCHAR *wine_port;
|
|
|
|
};
|
|
|
|
|
2021-10-27 09:14:46 +02:00
|
|
|
extern unixlib_handle_t winspool_handle DECLSPEC_HIDDEN;
|
2021-10-26 12:18:07 +02:00
|
|
|
|
2021-10-27 09:14:46 +02:00
|
|
|
#define UNIX_CALL( func, params ) __wine_unix_call( winspool_handle, unix_ ## func, params )
|
|
|
|
|
|
|
|
enum cups_funcs
|
|
|
|
{
|
|
|
|
unix_process_attach,
|
|
|
|
unix_enum_printers,
|
|
|
|
unix_get_default_page_size,
|
|
|
|
unix_get_ppd,
|
|
|
|
unix_schedule_job,
|
|
|
|
};
|