RE: Shared printer driver and DrvConvertDevmode by bobbym
bobbym
Fri Dec 12 17:36:47 CST 2003
------=_NextPart_0001_49F64835
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Scott,
>I expect that windows should call me back the second time
>with *pcbNeeded=<size of my devmode> and pdmOut=<pointer
>to a devmode-sized piece of memory>.
>Is there something that I am misunderstanding?
That is the expected behaviour.
Not sure is what is going on here.
Does everything work in the local scenario?
--------------------
Content-Class: urn:content-classes:message
From: "Scott Robins" <ScottRobins@nospam.usa.xerox.com.nospam>
Sender: "Scott Robins" <ScottRobins@nospam.usa.xerox.com.nospam>
References: <0ba101c3c0d3$8c4488c0$a501280a@phx.gbl>
Subject: Shared printer driver and DrvConvertDevmode
Date: Fri, 12 Dec 2003 10:05:38 -0800
Lines: 6
Message-ID: <12dfd01c3c0da$8c29d0a0$a601280a@phx.gbl>
I meant to say, I fill in *pcbNeeded with the size of
my devmode, call SetLastError(ERROR_INSUFFICIENT_BUFFER),
and return FALSE.
In this case,
Hope this helps.
Thank you,
Bobby Mattappally
Microsoft DDK Support
This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_49F64835
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Scott,
\par >I expect that windows should call me back the second time
\par >with *pcbNeeded=<size of my devmode> and pdmOut=<pointer
\par >to a devmode-sized piece of memory>.
\par >Is there something that I am misunderstanding?
\par
\par That is the expected behaviour.
\par Not sure is what is going on here.
\par Does everything work in the local scenario?
\par
\par \pard\li720 --------------------
\par Content-Class: urn:content-classes:message
\par From: "Scott Robins" <ScottRobins@nospam.usa.xerox.com.nospam>
\par Sender: "Scott Robins" <ScottRobins@nospam.usa.xerox.com.nospam>
\par References: <0ba101c3c0d3$8c4488c0$a501280a@phx.gbl>
\par Subject: Shared printer driver and DrvConvertDevmode
\par Date: Fri, 12 Dec 2003 10:05:38 -0800
\par Lines: 6
\par Message-ID: <12dfd01c3c0da$8c29d0a0$a601280a@phx.gbl>
\par I meant to say, I fill in *pcbNeeded with the size of
\par my devmode, call SetLastError(ERROR_INSUFFICIENT_BUFFER),
\par and return FALSE.
\par
\par \pard In this case,
\par
\par Hope this helps.
\par
\par Thank you,
\par Bobby Mattappally
\par Microsoft DDK Support
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_49F64835--