2 Unix SMB/CIFS implementation.
5 Copyright (C) Gerald Carter 2001-2005,
6 Copyright (C) Tim Potter 2000-2002,
7 Copyright (C) Andrew Tridgell 1994-2000,
8 Copyright (C) Jean-Francois Micouleau 1999-2000.
9 Copyright (C) Jeremy Allison 2005.
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #ifndef _RPC_CLIENT_CLI_SPOOLSS_H_
26 #define _RPC_CLIENT_CLI_SPOOLSS_H_
28 /* The following definitions come from rpc_client/cli_spoolss.c */
30 WERROR
rpccli_spoolss_openprinter_ex(struct rpc_pipe_client
*cli
,
32 const char *printername
,
33 uint32_t access_desired
,
34 struct policy_handle
*handle
);
35 WERROR
rpccli_spoolss_getprinterdriver(struct rpc_pipe_client
*cli
,
37 struct policy_handle
*handle
,
38 const char *architecture
,
41 union spoolss_DriverInfo
*info
);
42 WERROR
rpccli_spoolss_getprinterdriver2(struct rpc_pipe_client
*cli
,
44 struct policy_handle
*handle
,
45 const char *architecture
,
48 uint32_t client_major_version
,
49 uint32_t client_minor_version
,
50 union spoolss_DriverInfo
*info
,
51 uint32_t *server_major_version
,
52 uint32_t *server_minor_version
);
53 WERROR
rpccli_spoolss_addprinterex(struct rpc_pipe_client
*cli
,
55 struct spoolss_SetPrinterInfoCtr
*info_ctr
);
56 WERROR
rpccli_spoolss_getprinter(struct rpc_pipe_client
*cli
,
58 struct policy_handle
*handle
,
61 union spoolss_PrinterInfo
*info
);
62 WERROR
rpccli_spoolss_getjob(struct rpc_pipe_client
*cli
,
64 struct policy_handle
*handle
,
68 union spoolss_JobInfo
*info
);
69 WERROR
rpccli_spoolss_enumforms(struct rpc_pipe_client
*cli
,
71 struct policy_handle
*handle
,
75 union spoolss_FormInfo
**info
);
76 WERROR
rpccli_spoolss_enumprintprocessors(struct rpc_pipe_client
*cli
,
78 const char *servername
,
79 const char *environment
,
83 union spoolss_PrintProcessorInfo
**info
);
84 WERROR
rpccli_spoolss_enumprintprocessordatatypes(struct rpc_pipe_client
*cli
,
86 const char *servername
,
87 const char *print_processor_name
,
91 union spoolss_PrintProcDataTypesInfo
**info
);
92 WERROR
rpccli_spoolss_enumports(struct rpc_pipe_client
*cli
,
94 const char *servername
,
98 union spoolss_PortInfo
**info
);
99 WERROR
rpccli_spoolss_enummonitors(struct rpc_pipe_client
*cli
,
101 const char *servername
,
105 union spoolss_MonitorInfo
**info
);
106 WERROR
rpccli_spoolss_enumjobs(struct rpc_pipe_client
*cli
,
108 struct policy_handle
*handle
,
114 union spoolss_JobInfo
**info
);
115 WERROR
rpccli_spoolss_enumprinterdrivers(struct rpc_pipe_client
*cli
,
118 const char *environment
,
122 union spoolss_DriverInfo
**info
);
123 WERROR
rpccli_spoolss_enumprinters(struct rpc_pipe_client
*cli
,
130 union spoolss_PrinterInfo
**info
);
131 WERROR
rpccli_spoolss_getprinterdata(struct rpc_pipe_client
*cli
,
133 struct policy_handle
*handle
,
134 const char *value_name
,
136 enum winreg_Type
*type
,
139 WERROR
rpccli_spoolss_enumprinterkey(struct rpc_pipe_client
*cli
,
141 struct policy_handle
*handle
,
142 const char *key_name
,
143 const char ***key_buffer
,
145 WERROR
rpccli_spoolss_enumprinterdataex(struct rpc_pipe_client
*cli
,
147 struct policy_handle
*handle
,
148 const char *key_name
,
151 struct spoolss_PrinterEnumValues
**info
);
153 #endif /* _RPC_CLIENT_CLI_SPOOLSS_H_ */