~ubuntu-branches/ubuntu/gutsy/samba/gutsy-updates

« back to all changes in this revision

Viewing changes to source/include/rpc_spoolss.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2006-11-28 20:14:37 UTC
  • mfrom: (0.10.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061128201437-a6x4lzlhempazocp
Tags: 3.0.23d-1ubuntu1
* Merge from debian unstable.
* Drop python2.4-samba, replace with python-samba. Added Conflicts/Replaces
  on python2.4-samba
* Drop track-connection-dos.patch, ubuntu-winbind-panic.patch, 
  ubuntu-fix-ldap.patch, ubuntu-setlocale.patch, ubuntu-setlocale-fixes.patch
* Remaining Ubuntu changes:
  - Revert Debian's installation of mount.cifs and umount.cifs as suid
  - Comment out the default [homes] shares and add more verbose comments to
    explain what they do and how they work (closes: launchpad.net/27608)
  - Add a "valid users = %S" stanza to the commented-out [homes] section, to
    show users how to restrict access to \\server\username to only username.
  - Change the (commented-out) "printer admin" example to use "@lpadmin"
    instead of "@ntadmin", since the lpadmin group is used for spool admin.
  - Alter the panic-action script to encourage users to report their
    bugs in Ubuntu packages to Ubuntu, rather than reporting to Debian.
    Modify text to more closely match the Debian script
  - Munge our init script to deal with the fact that our implementation
    (or lack thereof) of log_daemon_msg and log_progress_msg differs
    from Debian's implementation of the same (Ubuntu #19691)
  - Kept ubuntu-auxsrc.patch: some auxilliary sources (undocumented in 
    previous changelogs)
  - Set default workgroup to MSHOME

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
   Copyright (C) Andrew Tridgell              1992-2000,
5
5
   Copyright (C) Luke Kenneth Casson Leighton 1996-2000,
6
6
   Copyright (C) Jean Francois Micouleau      1998-2000.
7
 
   Copyright (C) Gerald Carter                2001-2005.
 
7
   Copyright (C) Gerald Carter                2001-2006.
8
8
   
9
9
   This program is free software; you can redistribute it and/or modify
10
10
   it under the terms of the GNU General Public License as published by
107
107
#define SPOOLSS_DELETEPRINTERDATAEX                     0x51
108
108
#define SPOOLSS_DELETEPRINTERKEY                        0x52
109
109
#define SPOOLSS_DELETEPRINTERDRIVEREX                   0x54
 
110
#define SPOOLSS_XCVDATAPORT                             0x58
110
111
#define SPOOLSS_ADDPRINTERDRIVEREX                      0x59
111
112
 
 
113
/* 
 
114
 * Special strings for the OpenPrinter() call.  See the MSDN DDK
 
115
 * docs on the XcvDataPort() for more details.
 
116
 */
 
117
 
 
118
#define SPL_LOCAL_PORT            "Local Port"
 
119
#define SPL_TCPIP_PORT            "Standard TCP/IP Port"
 
120
#define SPL_XCV_MONITOR_LOCALMON  ",XcvMonitor Local Port"
 
121
#define SPL_XCV_MONITOR_TCPMON    ",XcvMonitor Standard TCP/IP Port"
 
122
 
112
123
 
113
124
#define PRINTER_CONTROL_UNPAUSE         0x00000000
114
125
#define PRINTER_CONTROL_PAUSE           0x00000001
799
810
        }
800
811
        notify_data;
801
812
        uint32 size;
802
 
        BOOL enc_type;
 
813
        uint32 enc_type;
803
814
} SPOOL_NOTIFY_INFO_DATA;
804
815
 
805
816
typedef struct spool_notify_info
2161
2172
}
2162
2173
SPOOL_R_GETPRINTPROCESSORDIRECTORY;
2163
2174
 
 
2175
/**************************************/
 
2176
 
 
2177
#define MAX_PORTNAME            64
 
2178
#define MAX_NETWORK_NAME        49
 
2179
#define MAX_SNMP_COMM_NAME      33
 
2180
#define MAX_QUEUE_NAME          33
 
2181
#define MAX_IPADDR_STRING       17
 
2182
                
 
2183
typedef struct {
 
2184
        uint16 portname[MAX_PORTNAME];
 
2185
        uint32 version;
 
2186
        uint32 protocol;
 
2187
        uint32 size;
 
2188
        uint32 reserved;
 
2189
        uint16 hostaddress[MAX_NETWORK_NAME];
 
2190
        uint16 snmpcommunity[MAX_SNMP_COMM_NAME];
 
2191
        uint32 dblspool;
 
2192
        uint16 queue[MAX_QUEUE_NAME];
 
2193
        uint16 ipaddress[MAX_IPADDR_STRING];
 
2194
        uint32 port;
 
2195
        uint32 snmpenabled;
 
2196
        uint32 snmpdevindex;
 
2197
} SPOOL_PORT_DATA_1;
 
2198
 
 
2199
typedef struct {
 
2200
        POLICY_HND handle;
 
2201
        UNISTR2 dataname;
 
2202
        RPC_BUFFER indata;
 
2203
        uint32 indata_len;
 
2204
        uint32 offered;
 
2205
        uint32 unknown;
 
2206
} SPOOL_Q_XCVDATAPORT;
 
2207
 
 
2208
typedef struct {
 
2209
        RPC_BUFFER outdata;
 
2210
        uint32 needed;
 
2211
        uint32 unknown;
 
2212
        WERROR status;
 
2213
} SPOOL_R_XCVDATAPORT;
 
2214
 
2164
2215
#define PRINTER_DRIVER_VERSION 2
2165
2216
#define PRINTER_DRIVER_ARCHITECTURE "Windows NT x86"
2166
2217