summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
AgeCommit message (Collapse)AuthorFilesLines
2002-09-10removed warning about shadowed globalsGerald Carter1-5/+5
(This used to be commit 8021bbbd0c5fad6db45a4c862848ea667cad0b79)
2002-09-10AbortPrinter() fix merged from APP_HEAD.Gerald Carter1-3/+21
(This used to be commit 97ede49e1271fa00c6ffdf9e6e3c2330ea935461)
2002-09-10change notify merge from APP_HEADGerald Carter1-75/+265
(This used to be commit b5227f0a645fdf2358fcb880f22e4662efdfe8e3)
2002-09-09Actually, I think Jerrys patch was incorrect as it didn't everJeremy Allison1-40/+8
add the printing msg flag, only remove it. Also, we already refcount the printer backchannel connection to add the connection tdb flag just before after we register/deregister the notification message handler. Jerry please check ! Jeremy. (This used to be commit c45364ae82e06364cbb11545d1262032e12a21b1)
2002-09-07merge of printer change notify fix from APP_HEADGerald Carter1-8/+40
(This used to be commit 6a53a9cb7c56927423dea125c65d66605fae566f)
2002-09-05Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simplyJeremy Allison1-30/+3
add then entries to the end of the list in printing/notify.c using DLIST_ADD_END. Jeremy. (This used to be commit 047d6a05fb60172a2607bb7d7d03dda5403c61fa)
2002-09-05Delivery notify messages over the back channel in *reverse* order inTim Potter1-3/+30
which they are sent in the message. This is because a DLIST_ADD is used by the message sender which results in the first (post!) message being at the end of the list. Notify messages must be delivered in the order the events occur in otherwise the port monitor gets confused. (This used to be commit d41ff1f1a6cfad71ef35698d45e9fb97d9100898)
2002-09-05Roussed on Jeremy for not putting in enough debugs in the new printTim Potter1-0/+2
notify stuff. (-: (This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)
2002-09-04Added better error code on out of space. Removed total jobs check - notJeremy Allison1-0/+7
applicable any more. Jeremy. (This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
2002-09-04Merge of (apparently working :-) new printing notify code.Jeremy Allison1-5/+54
Jeremy. (This used to be commit 8595c6ce4d74539089b600b3b0ff858a04b793ff)
2002-09-04DeletePrinterDriver[Ex]() fixes from APP_HEADGerald Carter1-24/+113
(This used to be commit 04874134ed83847988bad5fcad3463395dc283fb)
2002-08-30fix up print portion of registry. Merge from APP_HEAD.Gerald Carter1-1/+1
(This used to be commit ec37633548ed329c05b93499f75883d987b78f1e)
2002-08-30merge of phant0m key fix from APP_HEADGerald Carter1-59/+32
(This used to be commit cb13d334a53f27713665570d85607d57eb407f9f)
2002-08-26merge from APP_HEADGerald Carter1-1/+1
(This used to be commit ebe89453b63467c87263c24f4380544fef1124a6)
2002-08-26merge from APP_HEADGerald Carter1-35/+60
(This used to be commit 4689e7ea5e55e22e1e4293c91ba69fee53436143)
2002-08-22fix registry editor API for printing backend after I changedGerald Carter1-3/+1
the NT_PRINTER_PARAM to a REGISTRY_VALUE (This used to be commit 8d510abe125e15a8d71c58a13d170dc3d6371368)
2002-08-22get the access check in addform() correct this time.Gerald Carter1-111/+94
Needed to modify OpenPrinter() to store the access granted to on the print server handle as well. (This used to be commit 08b3f9688c6c3c83ad8949e6346d8fab5e563df4)
2002-08-21addform fix from SAMBA_2_2Gerald Carter1-17/+29
(This used to be commit db286e66ec4788b40e279fd230b2013f311e44ec)
2002-08-20segfault fixes merged from APP_HEADGerald Carter1-32/+42
(This used to be commit cd9ee27d89a5cd489efac2029c22797ec9c383ca)
2002-08-19add support for the "value,OID" format described in MSDN.Gerald Carter1-1/+31
I've not seen this on a real network, but we support it now :-) (This used to be commit 1ed6f68f6f29e1a62b12764ec5e84de8351efbd3)
2002-08-19added wrapper for delete_printer_data() that write the printer out to disk.Gerald Carter1-7/+15
(This used to be commit 113d960d77fc9e3671a448d093237ced25c2e18c)
2002-08-19change notify fix left out of merge by APP_HEAD by accidentGerald Carter1-1/+2
(This used to be commit a413ff8b494e63b42fab213f12b44df6a5f0c34c)
2002-08-18* Fix DeletePrinterDataEx() to work with arbitrary registry keysGerald Carter1-29/+72
* Fix delete_all_printer_data() to accept a key name for partial tree deletions * Fix EnumPrinterKey() to work with subkeys * Fix DeletePrinterKey() to work with ful or partial registry trees * Fix get_printer_subkeys() to return a list of unique keynames ( some were getting added twice due to subkeys names ) * fix a couple of typos for good measure (This used to be commit b6ceb8c2e50b7fcdc614a3b6782db05b60689a85)
2002-08-18fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.Gerald Carter1-51/+36
Works on the top level. Needs more testing for levels > 1. (This used to be commit 32a7083843f2bf9a3f32027189dbb0ff92927cd4)
2002-08-18* small formatting fixesGerald Carter1-57/+79
* Fix EnumPrinterKey() to enumerate all printer keys ( this will break if we have more than one level deep of printer keys ) (This used to be commit e72184ce13a5645dc1e1a137468207270ed20ed6)
2002-08-18fixed up a few commentsGerald Carter1-64/+2
removed now unused getprinterdata)printer() function (This used to be commit 2d5e4cdc3a4128c6747350d8f66b783218045ce2)
2002-08-18* fix Get/SetPrinterDataEx() to work with printer key otherGerald Carter1-119/+217
than SPOOL_PRINTERDATA_KEY * created an internal set/get_printer_dataex() call for reuse in Set/GetPrinterData() (This used to be commit 4eb8ffba032971cf83a0fcec7ca3730b4ded0bf0)
2002-08-17* the printing code should now be back to the working state it wasGerald Carter1-18/+38
before the swap from NT_PRINTER_PARAM to REGISTRY_VALUE. * XxxPrinterDataEx() functions have not been expanded to support keys other than SPOOL_PRINTERDATA_KEY yet * fixed apparent long standing bug regarding the dependentfiles list in the DRIVER_INFO struct (This used to be commit d59b0eb1236cf5bb9371030a94eb60d4131c15fb)
2002-08-17fix seg fault in _spoolss_enumprinterkey after changes...Gerald Carter1-19/+29
add SPOOL_PNPDATA_KEY define (This used to be commit cdaa3f55e1fcc38b1d7a63d502a9fea3b92bf193)
2002-08-16fix small bug in enumprinterdataex due to my changes (still more lurkingGerald Carter1-1/+3
though). (This used to be commit 2feb89601fc45dea13fe45a55a9c058726a5de84)
2002-08-16Fairly large change to printing code.Gerald Carter1-466/+244
* removed support for PHANTOM_DEVMODE printer data * s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit of work. Everything seems stable, but is not complete. * support for printer data keys other than PrinterDriverData in the store and fetch routines. Still needs to be plugged into the XxxPrinterDataEx() calls. Tested against NT4.0 & 2k. Like I said, it's not done, but doesn't crash so it shouldn't upset anyone (unless you're trying to build a Samba printer server off of HEAD). More work to come. Should settle by Monday. jerry (This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)
2002-08-08printing change notification merge from APPLIANCE_HEADGerald Carter1-109/+171
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
2002-08-08Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.Tim Potter1-0/+21
(This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)
2002-07-29couple of minor formatting fixes to help me see better.Gerald Carter1-2/+5
(This used to be commit 26027ee42ae378eef59a8ae46f5e4e44bf2d4af0)
2002-07-29merge from SAMBA_2_2Gerald Carter1-7/+13
(This used to be commit c268ae460e7e6fe25b6ac1583ea6d2f233c27d0f)
2002-07-24done! printer_info_2, devicemode, sec_desc, & printer data all enumerateGerald Carter1-1/+1
and display correctly in regedit.exe. Not sure about REG_SZ values in PrinterDriverData. If we store these in UNICODE, I'll have to fix up a few things. REG_BINARY & REG_DWORD are fine. (This used to be commit 2a30c243ec28734bbc721dfc01b743faa6f73788)
2002-07-22Sync with APPLIANCE_HEAD branch (whitespace, const only)Tim Potter1-2/+0
(This used to be commit 11229aa88b60d820ba714f2c793fe6932ec67a6b)
2002-07-22Merge from APPLIANCE_HEAD.Tim Potter1-9/+9
(This used to be commit 825cdc49dbc3e6b9d08b8e722c82cc09e2479fa1)
2002-07-17Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison1-11/+20
queueid in job number. This means we must have an internal tdb to store mapping from 16 bit RAP jobid's to 32 bit RPC jobids. Jeremy. (This used to be commit 4ff64f69706cc94d5dba7762754d00790c476963)
2002-07-12We must ZERO_STRUCT before using the buffer in copy_unistr2.Jeremy Allison1-0/+3
Fixes addprinterdriverex. Jeremy. (This used to be commit d3c73e59708eeb1ee4642fb31fcfc0ec2fd28070)
2002-07-11added copyrightGerald Carter1-1/+1
(This used to be commit dcb6d70706a0e86881588c3828ff5bd4d63d415f)
2002-07-11last check in for tonight.Gerald Carter1-15/+10
* DeletePrinterDriverEx() now has the ability to delete driver files. I need to do some more testing tro veriofy that we are in fact not deleting a file out from under another driver, but it looks ok so far. * DeletePrinterDriver() noiw deletes all versions of the specified driver (cversion == 0, 1, 2, 3) (This used to be commit 17bb780e1327663fa2fcd6a3cb25dd461a29c537)
2002-07-11all that is left to do is to actually perform theGerald Carter1-4/+24
file deletion now. I have the file list. One more commit should do it. (This used to be commit 7207662504f585352b0ceeb99f8998ef58db7f15)
2002-07-11intermediate work on DeletePrinterDriverEx(). This callGerald Carter1-19/+24
will actually delete driver files ( not yet though I don't think). Just wanted to get it in since Jeremy and I are both working on nt_printing.c (This used to be commit 3fa6c3132950c9ff1c6a532d8264ee34a6b2b0ff)
2002-07-08fix typoGerald Carter1-1/+1
(This used to be commit be926c3a1a7fc79af62dd1830c56e9503f89f9dd)
2002-07-08added parsing routines for SPOOLSS_ADDPRINTERDRIVEREX andGerald Carter1-59/+95
SPOOLSS_DELETEPRINTERDRIVEREX. Ran them through some testing. I know I'm off by 2 x uint32's in the former RPC. (This used to be commit 55fbfd02ba917b74fd4df7a1aa8cc8c5a91e3e07)
2002-07-08* basic implementation of SPOOLSS_DELETEPRINTERDATAEX andGerald Carter1-0/+70
SPOOLSS_DELETEPRINTERKEY * stub funnctions for SPOOLSS_ADDPRINTERDRIVEREX and SPOOLSS_DELETEPRINTERDRIVEREX (This used to be commit d675974d0c04a68d48d90492005056d96697c96c)
2002-07-02Address the string_sub problem by changing len = 0 to mean "no expand".Jeremy Allison1-1/+1
Went through and checked all string_subs I could to ensure they're being used correctly. Jeremy. (This used to be commit 17cae0d683be404be69554cd0e84117bdcc56c87)
2002-07-02Merge of constant renames from APPLIANCE_HEAD.Tim Potter1-53/+53
(This used to be commit daf4c6a013ffa474d768055e73a1cb31ee941e80)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison1-344/+540
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)