Günther Deschner
db7b812149
librpc/ndr: add [to_null] keyword to szPackageId in spoolss_CorePrinterDriver.
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-01-24 10:53:17 +01:00
Günther Deschner
0e7302dd10
spoolss: Fix PROCESSOR_AMD_X8664 value in IDL
...
Microsoft got their docs wrong in MS-RPRN Section 2.2.1.10.1 (footnote
65): PROCESSOR_AMD_X8664 must be 0x000021D8 and not 0x000022A0.
This is what recent windows versions report back from a spoolss
getprinter level 0 RPC call.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2017-01-12 15:35:13 +01:00
Günther Deschner
73f664710a
spoolss: Use correct values for secdesc and devmode pointers
...
ULONG_PTR needs to be decoded as a uint3264 and not as a 'uint32 *'.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11197
Guenther
Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-11-11 22:57:22 +01:00
Stefan Metzmacher
0f1859b85e
spoolss.idl: use access mask defines from security.idl
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
2016-10-13 18:14:15 +02:00
Günther Deschner
a13c58574b
librpc: add IRemoteWinspool idl
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:28 +02:00
Günther Deschner
c6d700ee1f
spoolss: rename RPC_PrintNamedProperty to spoolss_PrintNamedProperty
...
We should try to avoid the RPC_ prefix in structs, enums for spoolss.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:27 +02:00
Günther Deschner
1e4ea50a4c
spoolss: rename spoolss_RpcSendRecvBidiData to spoolss_SendRecvBidiData
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:27 +02:00
Günther Deschner
6476153069
spoolss: rename spoolss_RpcEnumJobNamedProperties to spoolss_EnumJobNamedProperties
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:27 +02:00
Günther Deschner
cdf958824e
spoolss: rename spoolss_RpcDeleteJobNamedProperty to spoolss_DeleteJobNamedProperty
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:27 +02:00
Günther Deschner
17d94d0531
spoolss: rename spoolss_RpcSetJobNamedProperty to spoolss_SetJobNamedProperty
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:26 +02:00
Günther Deschner
d64b316fed
spoolss: rename spoolss_RpcGetJobNamedPropertyValue to spoolss_GetJobNamedPropertyValue
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:26 +02:00
Günther Deschner
23f404b7f5
spoolss: rename spoolss_EnumPrintProcDataTypes to spoolss_EnumPrintProcessorDataTypes
...
This change makes automatic mapping for PAR->RPRN opcodes easier.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:26 +02:00
Günther Deschner
0d2dd7eb9b
spoolss: add IDL for spoolss_LogJobInfoForBranchOffice.
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-11 19:57:25 +02:00
Günther Deschner
2d4107f9e1
librpc: fix IDL for spoolss_GetPrinterDriverPackagePath()
...
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-08-23 01:06:24 +02:00
Günther Deschner
bb8267ce49
librpc: fix spoolss_GetCorePrinterDrivers IDL.
...
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-08-23 01:06:24 +02:00
Günther Deschner
4b75b49816
spoolss: add various well known core printer driver file GUIDs to IDL.
...
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-08-23 01:06:24 +02:00
Stefan Metzmacher
02d221debe
spoolss.idl: add SPOOLSS_JOB_CONTROL_NOOP = 0
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-20 20:43:11 +01:00
Günther Deschner
9744bf519b
spoolss: fill in IDL for spoolss_DeletePrintProcessor.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:01 +02:00
Günther Deschner
cc153fe86f
s4-torture: add ndr test for spoolss_RpcSetJobNamedProperty.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
c568a2e5c5
s4-torture: add ndr test for spoolss_GetCorePrinterDrivers.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
3d567f6a96
spoolss: add spoolss_MonitorContainer IDL.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
1aafc844a7
spoolss: make RPC_PrintNamedProperty public
...
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
cc38511903
spoolss: fill in IDL for JobNamedProperty calls.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
ec29957e88
spoolss: make more container objects public for iremotewinspool.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
5a5ed68d0a
spoolss: add idl for spoolss_RpcSendRecvBidiData.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
69d9e3ef87
spoolss: add [ms_union] to spoolss.idl where appropriate.
...
Normally we would activate [ms_union] for the entire interface but given the
fact we use this IDL file also for custom-marshalled structures we would
generate union arm alignment also for the custom-marshalled unions where they
are inappropriate. Thus, only enable [ms_union] only for unions that are part of
the MS-RPRN IDL.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
229108e266
spoolss: fix string types in spoolss_JTEXP.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
393ad20577
spoolss: Fix two size elements in the devmode private spoolss_JTEXP struct.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:00 +02:00
Günther Deschner
0364658632
spoolss: add UNIVERSAL_FONT_ID_ctr for debugging.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-24 17:42:26 +01:00
Günther Deschner
d99b1ee79c
spoolss: Add UNIVERSAL_FONT_ID.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-24 17:42:26 +01:00
Günther Deschner
a270e20b19
spoolss: fill in spoolss_PlayGDIScriptOnPrinterIC IDL.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-24 17:42:26 +01:00
Günther Deschner
11fba10208
spoolss: make spoolss deal with ndr64 StartDocPrinter by using proper container object.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-24 17:42:25 +01:00
Günther Deschner
6bcd3dda28
spoolss: add more spoolss_DriverAttributes values.
...
The level5 driver does return only one of these flags with a different value,
will get fixed later.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-24 17:42:20 +01:00
Günther Deschner
3b94b64481
spoolss: make spoolss deal with ndr64 SetForm by using proper container object.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-01-17 17:11:37 +01:00
Günther Deschner
8304fe73f6
spoolss: make spoolss deal with ndr64 AddForm by using proper container object.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-01-17 17:11:37 +01:00
Günther Deschner
be8c81bfa3
s4-torture: add ndr64 spoolss_SetPrinter ndr test.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-01-17 17:11:37 +01:00
Günther Deschner
e8feca012e
spoolss: make spoolss deal with ndr64 ULONG_PTR of devmode_ptr and secdesc_ptr.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-01-17 17:11:37 +01:00
Günther Deschner
a4dcf7b94d
spoolss: Make OpenPrinterEx work with NDR64 by using UserInfo Container.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-16 11:42:13 +01:00
Günther Deschner
6a5afa2442
spoolss: add stubs for new JobNamedProperty dcerpc calls.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Jan 7 19:06:25 CET 2013 on sn-devel-104
2013-01-07 19:06:25 +01:00
Günther Deschner
638ed90620
spoolss: add SPOOLSS_DRIVER_VERSION_2012 (4) define to IDL.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-07 17:02:10 +01:00
Günther Deschner
22994ca92b
spoolss: add Windows ARM architecture defines to IDL.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-07 17:01:42 +01:00
Andreas Schneider
c83f9330a4
idl: Fix spoolss check for the size of the struct.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2012-12-12 09:42:32 +01:00
David Disseldorp
94f925c815
idl: add to_null attribute to the spoolss devicename array
...
OpenPrinterEx requests have also been observed in the wild carrying
non-utf16 garbage after the device mode devicename field null
terminator.
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-13 09:37:37 -08:00
David Disseldorp
0df5d0608e
idl: add to_null attribute to the spoolss formname array
...
OpenPrinterEx requests have been observed in the wild carrying a device
mode formname "A4" followed by non-utf16 garbage after the null
terminator. Such requests currently fail during unmarshalling in the
ndr_pull_charset() codepath, causing intermittent print job failures.
This change ensures that garbage after the device mode formname null
terminator is not processed in unmarshalling.
https://bugzilla.samba.org/show_bug.cgi?id=8606
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-13 09:37:37 -08:00
Stefan Metzmacher
db11e6505e
spoolss.idl: align spoolss_DriverFileInfo relative pointer to 4 byte
...
metze
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar 1 02:12:37 CET 2011 on sn-devel-104
2011-03-01 02:12:37 +01:00
Stefan Metzmacher
341330600a
spoolss.idl: align spoolss_PrinterEnumValues 'data' based on the type
...
metze
2011-02-28 15:54:13 -08:00
Günther Deschner
1b293c90be
spoolss: fill in PerMachineConnections add and delete IDL.
...
Guenther
2010-12-16 10:52:50 +01:00
Günther Deschner
355849ed4c
spoolss: fill in spoolss_DeletePort IDL.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 4 08:10:16 UTC 2010 on sn-devel-104
2010-10-04 08:10:16 +00:00
Günther Deschner
279e0c9610
spoolss: fill in spoolss_SetPort IDL.
...
Guenther
2010-10-04 09:29:47 +02:00
Günther Deschner
2ff1c9eb30
spoolss: fill in spoolss_AddPortEx IDL.
...
Guenther
2010-10-04 09:29:39 +02:00