Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
I don't understand how I share a printer using this command. How do I "flip" the 8th bit for sharing or the 8192 bit for Publishing. There is not enough arguments to add a 0 or a 1 .. I am confused...
pSetPrtInfo((STRCAT("\\",PRTSRV,"\",QUEUE)),12 ,81)Any Ideas?
I did a little research on how to publish a printer.... http://support.microsoft.com/default.aspx?scid=kb;en-us;234619
For NON Windows 2000-Based Computers publishing can be accomplished by running a script on the system called 'pubprn.vbs'.
More...
The pSetPrtInfo function simply calls the SetPrinter API to set the data for a specified printer. It currently uses the PRINTER_INFO_2 structure to set detailed information about the printer. The following tech article states that the SetPrinter API should use the PRINTER_INFO_7 structure. The dwAction member of this structure indicates whether SetPrinter should publish, unpublish, re-publish, or update the printer's data in the directory service.
Print Spooler Support for Printer Directory Services
http://msdn.microsoft.com/library/en-us/gdi/prntspol_7nqq.asp?frame=true We may need to update the pSetPrtInfo Function to handle for this. I will pass this request on to our developers.
Article ID: W16355
File Created: 2005:02:18:12:20:00
Last Updated: 2005:02:18:12:20:00