[WinPrnDev] Re: How to get dll name for print processor

Well, as a "hack" you can use "GetPrintProcessorDirectory" and then look
at the last section of the returned path.

You can of course also build your own mapping by using information
returned by GetVersionEx, GetSystemMetrics, and GetNativeSystemInfo


> -----Original Message-----
> From: winprndev-bounce@xxxxxxxxxxxxx [mailto:winprndev-
> bounce@xxxxxxxxxxxxx] On Behalf Of Alex Egorov
> Sent: Thursday, October 16, 2008 11:06 AM
> To: winprndev@xxxxxxxxxxxxx
> Subject: [WinPrnDev] Re: How to get dll name for print processor
> 
> I know about this, I need information about print server environment
> (for example this environment value used when I use nil for function
> EnumPrintProcessors(..., nil - second parameter
> 
> On Thu, Oct 16, 2008 at 1:01 PM, Christoph Lindemann
> <Christoph.Lindemann@xxxxxxxxxxxxxxxxxxx> wrote:
> > The environment depends on what the print processor is written for.
You
> > can have version  for several different environments available on a
> > printserver, which are used when clients connect and need to install
the
> > drivers.
> >
> > Where a print processor is put, probably depends on what
initialization
> > function it exports (and what processor target it was compiled for)
> >
> >> -----Original Message-----
> >> From: winprndev-bounce@xxxxxxxxxxxxx [mailto:winprndev-
> >> bounce@xxxxxxxxxxxxx] On Behalf Of Alex Egorov
> >> Sent: Thursday, October 16, 2008 9:45 AM
> >> To: Christoph Lindemann
> >> Subject: [WinPrnDev] Re: How to get dll name for print processor
> >>
> >> Hello Christoph,
> >>
> >> > Without having tried it - but maybe GetPrinterDataEx can do the
> > trick.
> >>
> >> > hPrinter: handle to a print server
> >> > pKeyName: "Environments\Windows NT x86\Print
Processors\<printproc
> >> name>>"
> >> > pValueName: "Driver"
> >>
> >> > Of course you might specify other environment then "Windows NT
x86",
> >> > like "Windows x64" or "Windows 4.0"
> >>
> >> May be you know how I can determine my environment?
> >>
> >> --
> >> Alex Egorov
> >>
> >>
> >>
> >> ---
> >> Questions? First check the UndocPrint pages at
> >> http://www.undocprint.org/winspool
> >>
> >> To unsubscribe, visit the List Server page at
> >> http://www.freelists.org/list/winprndev
> > ---
> > Questions? First check the UndocPrint pages at
> http://www.undocprint.org/winspool
> >
> > To unsubscribe, visit the List Server page at
> http://www.freelists.org/list/winprndev
> >
> 
> 
> 
> --
> Alex Egorov
> http://usefulsoft.com
> ---
> Questions? First check the UndocPrint pages at
> http://www.undocprint.org/winspool
> 
> To unsubscribe, visit the List Server page at
> http://www.freelists.org/list/winprndev
---
Questions? First check the UndocPrint pages at 
http://www.undocprint.org/winspool

To unsubscribe, visit the List Server page at 
http://www.freelists.org/list/winprndev

Other related posts: