From: shobhit on
Dear Concern,

I am developing printer drivers rendering plugin(IPrintOEMPS) and UI
plugin(IPrintOEMUI2) using winddk.

I want disable the POSTSCRIPT_PASSTHROUGH option. For this I have tried
IPrintOEMUI2::DocumentEvent function.

But this does not work.

Can someone please tell me how can I achieve the same.

Regards
Shobhit Jain
From: Tim Roberts on
shobhit <shobhit(a)discussions.microsoft.com> wrote:
>
>I am developing printer drivers rendering plugin(IPrintOEMPS) and UI
>plugin(IPrintOEMUI2) using winddk.
>
>I want disable the POSTSCRIPT_PASSTHROUGH option. For this I have tried
>IPrintOEMUI2::DocumentEvent function.
>
>But this does not work.

It should be clear that the UI plugin doesn't get involved in rendering.

>Can someone please tell me how can I achieve the same.

POSTSCRIPT_PASSTHROUGH is delivered through the Escape API. So, in
IPrintOEMPS::EnableDriver, you need to hook INDEX_DrvEscape. Then, in your
Escape handler, just don't pass the request on to pscript for that request.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.