[python-win32] SetPrinterDataEx or SetPrinterData

Tim Roberts timr at probo.com
Mon Jun 14 23:40:36 CEST 2010


On 6/14/2010 2:19 PM, Mike Driscoll wrote:
>
> I am looking for a way to call SetPrinterDataEx or SetPrinterData so I
> can set some parameters for one our admins. For some reason, the new
> Brother printer we bought thinks that we're not admins, so we need a
> way to hack it. I can't find anything in Python about these functions.
> Here are the MSDN pages I found:
>
> http://msdn.microsoft.com/en-us/library/dd145084%28VS.85%29.aspx
> http://msdn.microsoft.com/en-us/library/dd145083%28VS.85%29.aspx
>
> I googled various terms, but it doesn't look like PyWin32 wraps either
> of these directly. Does anyone know any workarounds? Thanks!

Those are just shortcuts to registry access.  Have you tried
manipulating the registry by hand to make sure you can effect the
changes you want?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list