2010-03-15 14:24:40 +03:00
/*
* Unix SMB / CIFS implementation .
*
* SPOOLSS RPC Pipe server / winreg client routines
*
* Copyright ( c ) 2010 Andreas Schneider < asn @ samba . org >
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 3 of the License , or
* ( at your option ) any later version .
*
* This program 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 General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , see < http : //www.gnu.org/licenses/>.
*/
# ifndef _SRV_SPOOLSS_UITL_H
# define _SRV_SPOOLSS_UITL_H
2010-04-15 19:53:39 +04:00
enum spoolss_PrinterInfo2Mask {
SPOOLSS_PRINTER_INFO_ATTRIBUTES = ( int ) ( 0x00000001 ) ,
SPOOLSS_PRINTER_INFO_AVERAGEPPM = ( int ) ( 0x00000002 ) ,
SPOOLSS_PRINTER_INFO_CJOBS = ( int ) ( 0x00000004 ) ,
SPOOLSS_PRINTER_INFO_COMMENT = ( int ) ( 0x00000008 ) ,
SPOOLSS_PRINTER_INFO_DATATYPE = ( int ) ( 0x00000010 ) ,
SPOOLSS_PRINTER_INFO_DEFAULTPRIORITY = ( int ) ( 0x00000020 ) ,
SPOOLSS_PRINTER_INFO_DEVMODE = ( int ) ( 0x00000040 ) ,
SPOOLSS_PRINTER_INFO_DRIVERNAME = ( int ) ( 0x00000080 ) ,
SPOOLSS_PRINTER_INFO_LOCATION = ( int ) ( 0x00000100 ) ,
SPOOLSS_PRINTER_INFO_NAME = ( int ) ( 0x00000200 ) ,
SPOOLSS_PRINTER_INFO_PARAMETERS = ( int ) ( 0x00000400 ) ,
SPOOLSS_PRINTER_INFO_PORTNAME = ( int ) ( 0x00000800 ) ,
SPOOLSS_PRINTER_INFO_PRINTERNAME = ( int ) ( 0x00001000 ) ,
SPOOLSS_PRINTER_INFO_PRINTPROCESSOR = ( int ) ( 0x00002000 ) ,
SPOOLSS_PRINTER_INFO_PRIORITY = ( int ) ( 0x00004000 ) ,
SPOOLSS_PRINTER_INFO_SECDESC = ( int ) ( 0x00008000 ) ,
SPOOLSS_PRINTER_INFO_SEPFILE = ( int ) ( 0x00010000 ) ,
SPOOLSS_PRINTER_INFO_SERVERNAME = ( int ) ( 0x00020000 ) ,
SPOOLSS_PRINTER_INFO_SHARENAME = ( int ) ( 0x00040000 ) ,
SPOOLSS_PRINTER_INFO_STARTTIME = ( int ) ( 0x00080000 ) ,
SPOOLSS_PRINTER_INFO_STATUS = ( int ) ( 0x00100000 ) ,
SPOOLSS_PRINTER_INFO_UNTILTIME = ( int ) ( 0x00200000 )
} ;
# define SPOOLSS_PRINTER_INFO_ALL SPOOLSS_PRINTER_INFO_ATTRIBUTES | \
SPOOLSS_PRINTER_INFO_AVERAGEPPM | \
SPOOLSS_PRINTER_INFO_CJOBS | \
SPOOLSS_PRINTER_INFO_COMMENT | \
SPOOLSS_PRINTER_INFO_DATATYPE | \
SPOOLSS_PRINTER_INFO_DEFAULTPRIORITY | \
SPOOLSS_PRINTER_INFO_DEVMODE | \
SPOOLSS_PRINTER_INFO_DRIVERNAME | \
SPOOLSS_PRINTER_INFO_LOCATION | \
SPOOLSS_PRINTER_INFO_NAME | \
SPOOLSS_PRINTER_INFO_PARAMETERS | \
SPOOLSS_PRINTER_INFO_PORTNAME | \
SPOOLSS_PRINTER_INFO_PRINTERNAME | \
SPOOLSS_PRINTER_INFO_PRINTPROCESSOR | \
SPOOLSS_PRINTER_INFO_PRIORITY | \
SPOOLSS_PRINTER_INFO_SECDESC | \
SPOOLSS_PRINTER_INFO_SEPFILE | \
SPOOLSS_PRINTER_INFO_SERVERNAME | \
SPOOLSS_PRINTER_INFO_SHARENAME | \
SPOOLSS_PRINTER_INFO_STARTTIME | \
SPOOLSS_PRINTER_INFO_STATUS | \
SPOOLSS_PRINTER_INFO_UNTILTIME
2010-04-21 14:56:39 +04:00
WERROR winreg_create_printer ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 11:34:23 +04:00
struct messaging_context * msg_ctx ,
2010-04-26 15:36:19 +04:00
const char * servername ,
2010-04-21 14:56:39 +04:00
const char * sharename ) ;
2010-04-15 19:53:39 +04:00
/**
* @ internal
*
* @ brief Update the information of a printer in the registry .
*
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
*
2010-05-04 13:37:42 +04:00
* @ param [ in ] sharename The share name .
*
2010-04-15 19:53:39 +04:00
* @ param [ in ] info2_mask A bitmask which defines which values should be set .
*
* @ param [ in ] info2 A SetPrinterInfo2 structure with the data to set .
*
* @ param [ in ] devmode A device mode structure with the data to set .
*
* @ param [ in ] secdesc A security descriptor structure with the data to set .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_update_printer ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 11:37:43 +04:00
struct messaging_context * msg_ctx ,
2010-05-04 13:37:42 +04:00
const char * sharename ,
2010-04-15 19:53:39 +04:00
uint32_t info2_mask ,
struct spoolss_SetPrinterInfo2 * info2 ,
struct spoolss_DeviceMode * devmode ,
struct security_descriptor * secdesc ) ;
2010-04-21 19:13:02 +04:00
/**
* @ brief Get the inforamtion of a printer stored in the registry .
*
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
*
2010-04-26 15:36:19 +04:00
* @ param [ in ] printer The servername to use .
*
2010-04-21 19:13:02 +04:00
* @ param [ in ] printer The name of the printer to get .
*
* @ param [ out ] pinfo2 A pointer to store a PRINTER_INFO_2 structure .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_get_printer ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:08:22 +04:00
struct messaging_context * msg_ctx ,
2010-04-26 15:36:19 +04:00
const char * servername ,
2010-04-21 19:13:02 +04:00
const char * printer ,
struct spoolss_PrinterInfo2 * * pinfo2 ) ;
2010-05-04 13:44:12 +04:00
/**
* @ brief Get the security descriptor for a printer .
*
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
*
* @ param [ in ] sharename The share name .
*
* @ param [ out ] psecdesc A pointer to store the security descriptor .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_get_printer_secdesc ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:11:00 +04:00
struct messaging_context * msg_ctx ,
2010-05-04 13:44:12 +04:00
const char * sharename ,
struct spoolss_security_descriptor * * psecdesc ) ;
/**
* @ brief Set the security descriptor for a printer .
*
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
*
* @ param [ in ] sharename The share name .
*
* @ param [ in ] secdesc The security descriptor to save .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_set_printer_secdesc ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:14:31 +04:00
struct messaging_context * msg_ctx ,
2010-05-04 13:44:12 +04:00
const char * sharename ,
const struct spoolss_security_descriptor * secdesc ) ;
2010-03-15 14:24:59 +03:00
/**
* @ internal
*
* @ brief Set printer data over the winreg pipe .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-15 14:24:59 +03:00
*
* @ param [ in ] printer The printer name .
*
* @ param [ in ] key The key of the printer data to store the value .
*
* @ param [ in ] value The value name to save .
*
* @ param [ in ] type The type of the value to use .
*
* @ param [ in ] data The data which sould be saved under the given value .
*
* @ param [ in ] data_size The size of the data .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_set_printer_dataex ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:19:35 +04:00
struct messaging_context * msg_ctx ,
2010-03-15 14:24:59 +03:00
const char * printer ,
const char * key ,
const char * value ,
enum winreg_Type type ,
uint8_t * data ,
uint32_t data_size ) ;
2010-03-15 14:27:51 +03:00
/**
* @ internal
*
* @ brief Get printer data over a winreg pipe .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-15 14:27:51 +03:00
*
* @ param [ in ] printer The printer name .
*
* @ param [ in ] key The key of the printer data to get the value .
*
* @ param [ in ] value The name of the value to query .
*
* @ param [ in ] type The type of the value to query .
*
* @ param [ out ] data A pointer to store the data .
*
* @ param [ out ] data_size A pointer to store the size of the data .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_get_printer_dataex ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:22:11 +04:00
struct messaging_context * msg_ctx ,
2010-03-15 14:27:51 +03:00
const char * printer ,
const char * key ,
const char * value ,
enum winreg_Type * type ,
uint8_t * * data ,
uint32_t * data_size ) ;
2010-03-12 19:31:21 +03:00
/**
* @ internal
*
* @ brief Enumerate on the values of a given key and provide the data .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-12 19:31:21 +03:00
*
* @ param [ in ] printer The printer name .
*
* @ param [ in ] key The key of the printer data to get the value .
*
* @ param [ out ] pnum_values A pointer to store the number of values we found .
*
* @ param [ out ] penum_values A pointer to store the values and its data .
*
* @ return WERR_OK on success , the corresponding DOS error
* code if something gone wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_enum_printer_dataex ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:23:49 +04:00
struct messaging_context * msg_ctx ,
2010-03-12 19:31:21 +03:00
const char * printer ,
const char * key ,
uint32_t * pnum_values ,
struct spoolss_PrinterEnumValues * * penum_values ) ;
2010-03-15 14:30:05 +03:00
/**
* @ internal
*
* @ brief Delete printer data over a winreg pipe .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-15 14:30:05 +03:00
*
* @ param [ in ] printer The printer name .
*
* @ param [ in ] key The key of the printer data to delete .
*
* @ param [ in ] value The name of the value to delete .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_delete_printer_dataex ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:25:54 +04:00
struct messaging_context * msg_ctx ,
2010-03-15 14:30:05 +03:00
const char * printer ,
const char * key ,
const char * value ) ;
2010-03-17 17:59:10 +03:00
/**
* @ internal
*
* @ brief Enumerate on the subkeys of a given key and provide the data .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-17 17:59:10 +03:00
*
* @ param [ in ] printer The printer name .
*
* @ param [ in ] key The key of the printer data to get the value .
*
* @ param [ out ] pnum_subkeys A pointer to store the number of subkeys found .
*
* @ param [ in ] psubkeys A pointer to an array to store the names of the subkeys
* found .
*
* @ return WERR_OK on success , the corresponding DOS error
* code if something gone wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_enum_printer_key ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:27:40 +04:00
struct messaging_context * msg_ctx ,
2010-03-17 17:59:10 +03:00
const char * printer ,
const char * key ,
uint32_t * pnum_subkeys ,
const char * * * psubkeys ) ;
2010-04-06 19:01:15 +04:00
/**
* @ internal
*
* @ brief Delete a key with subkeys of a given printer .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-04-06 19:01:15 +04:00
*
* @ param [ in ] printer The printer name .
*
* @ param [ in ] key The key of the printer to delete .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_delete_printer_key ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:29:50 +04:00
struct messaging_context * msg_ctx ,
2010-04-06 19:01:15 +04:00
const char * printer ,
const char * key ) ;
2010-04-15 17:18:26 +04:00
/**
* @ brief Update the ChangeID of a printer .
*
* The ChangeID * * must * * be increasing over the lifetime of client ' s spoolss
* service in order for the client ' s cache to show updates .
*
* If a form is updated of a printer , the we need to update the ChangeID of the
* pritner .
*
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
*
* @ param [ in ] printer The printer name .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_printer_update_changeid ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:34:00 +04:00
struct messaging_context * msg_ctx ,
2010-04-15 17:18:26 +04:00
const char * printer ) ;
2010-04-15 23:51:16 +04:00
/**
* @ brief Get the ChangeID of the given printer .
*
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
*
* @ param [ in ] printer The printer name .
*
* @ param [ in ] changeid A pointer to store the changeid .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_printer_get_changeid ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:35:57 +04:00
struct messaging_context * msg_ctx ,
2010-04-15 23:51:16 +04:00
const char * printer ,
uint32_t * pchangeid ) ;
2010-03-31 15:03:09 +04:00
/**
2010-03-31 15:04:04 +04:00
* @ internal
*
* @ brief This function adds a form to the list of available forms that can be
* selected for the specified printer .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-31 15:04:04 +04:00
*
* @ param [ in ] form The form to add .
*
* @ return WERR_OK on success .
* WERR_ALREADY_EXISTS if the form already exists or is a
* builtin form .
* A corresponding DOS error is something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_printer_addform1 ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:37:43 +04:00
struct messaging_context * msg_ctx ,
2010-03-31 15:04:04 +04:00
struct spoolss_AddFormInfo1 * form ) ;
/*
2010-03-31 15:03:09 +04:00
* @ brief This function enumerates the forms supported by the specified printer .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-31 15:03:09 +04:00
*
* @ param [ out ] pnum_info A pointer to store the FormInfo count .
*
* @ param [ out ] pinfo A pointer to store an array with FormInfo .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_printer_enumforms1 ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:39:42 +04:00
struct messaging_context * msg_ctx ,
2010-03-31 15:03:09 +04:00
uint32_t * pnum_info ,
union spoolss_FormInfo * * pinfo ) ;
2010-03-31 17:31:21 +04:00
/**
* @ brief This function removes a form name from the list of supported forms .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-03-31 17:31:21 +04:00
*
* @ param [ in ] form_name The name of the form to delete .
*
* @ return WERR_OK on success .
* WERR_INVALID_PARAM if the form is a builtin form .
2010-04-09 11:26:08 +04:00
* WERR_INVALID_FORM_NAME if the form or key doesn ' t exist .
2010-03-31 17:31:21 +04:00
* A corresponding DOS error is something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_printer_deleteform1 ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:41:54 +04:00
struct messaging_context * msg_ctx ,
2010-03-31 17:31:21 +04:00
const char * form_name ) ;
2010-04-01 13:51:59 +04:00
/**
* @ brief This function sets the form information for the specified printer .
*
* If one provides both the name in the API call and inside the FormInfo
* structure , then the form gets renamed .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-04-01 13:51:59 +04:00
*
* @ param [ in ] form_name The name of the form to set or rename .
*
* @ param [ in ] form The FormInfo structure to save .
*
* @ return WERR_OK on success .
* WERR_INVALID_PARAM if the form is a builtin form .
* A corresponding DOS error is something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_printer_setform1 ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:44:13 +04:00
struct messaging_context * msg_ctx ,
2010-04-01 13:51:59 +04:00
const char * form_name ,
struct spoolss_AddFormInfo1 * form ) ;
2010-04-01 14:45:58 +04:00
/**
* @ brief This function retrieves information about a specified form .
*
2010-04-19 20:51:26 +04:00
* @ param [ in ] mem_ctx The talloc memory context to use .
*
* @ param [ in ] server_info The server supplied session info .
2010-04-01 14:45:58 +04:00
*
* @ param [ in ] form_name The name of the form to query .
*
* @ param [ out ] form A pointer to a form structure to fill out .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
2010-04-19 20:34:36 +04:00
WERROR winreg_printer_getform1 ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:46:00 +04:00
struct messaging_context * msg_ctx ,
2010-04-01 14:45:58 +04:00
const char * form_name ,
struct spoolss_FormInfo1 * form ) ;
2010-04-21 17:37:08 +04:00
/**
* @ brief This function adds a new spool driver
*
* @ param [ in ] mem_ctx A talloc memory context .
*
* @ param [ in ] server_info Auth info to open the pipe .
*
* @ param [ in ] r The structure containing the new driver data .
*
* @ param [ out ] driver_name Returns the driver name .
*
* @ param [ out ] driver_version Returns the driver version .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_add_driver ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:47:35 +04:00
struct messaging_context * msg_ctx ,
2010-04-21 17:37:08 +04:00
struct spoolss_AddDriverInfoCtr * r ,
const char * * driver_name ,
uint32_t * driver_version ) ;
2010-04-21 17:38:39 +04:00
/**
* @ brief This function gets printer driver information
*
* @ param [ in ] mem_ctx A talloc memory context .
*
* @ param [ in ] server_info Auth info to open the pipe .
*
* @ param [ in ] architecture The architecture type .
*
* @ param [ in ] driver_name The driver name .
*
* @ param [ in ] driver_version The driver version .
*
* @ param [ out ] _info8 The structure that holds the full driver information .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_get_driver ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:52:19 +04:00
struct messaging_context * msg_ctx ,
2010-04-21 17:38:39 +04:00
const char * architecture ,
const char * driver_name ,
uint32_t driver_version ,
struct spoolss_DriverInfo8 * * _info8 ) ;
2010-04-20 05:01:38 +04:00
/**
* @ brief This function deletes a printer driver information
*
* @ param [ in ] mem_ctx A talloc memory context .
*
* @ param [ in ] server_info Auth info to open the pipe .
*
* @ param [ out ] info8 The structure that holds the full driver information .
*
* @ param [ in ] version The driver type version .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_del_driver ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:54:01 +04:00
struct messaging_context * msg_ctx ,
2010-04-20 05:01:38 +04:00
struct spoolss_DriverInfo8 * info8 ,
uint32_t version ) ;
2010-04-20 05:50:52 +04:00
/**
* @ brief This function gets printer drivers list for the specified
* architecture and type version
*
* @ param [ in ] mem_ctx A talloc memory context .
*
* @ param [ in ] server_info Auth info to open the pipe .
*
* @ param [ in ] architecture The architecture type .
*
* @ param [ in ] version The driver version .
*
* @ param [ out ] num_drivers The number of drivers .
*
* @ param [ out ] version The drivers names .
*
* @ return On success WERR_OK , a corresponding DOS error is
* something went wrong .
*/
WERROR winreg_get_driver_list ( TALLOC_CTX * mem_ctx ,
2010-09-09 13:21:43 +04:00
const struct auth_serversupplied_info * server_info ,
2010-08-08 12:55:41 +04:00
struct messaging_context * msg_ctx ,
2010-04-20 05:50:52 +04:00
const char * architecture ,
uint32_t version ,
uint32_t * num_drivers ,
const char * * * drivers ) ;
2010-03-15 14:24:40 +03:00
# endif /* _SRV_SPOOLSS_UITL_H */