I am trying to display a custom message in the spooler instead of the
default messages.
I am using SetPort with a PortInfo3 structure.
Copying the string with PortInfo3.pszStatus = _wcsdup(TEXT("My Text"));
The text is actually accessible but will not be displayed by the spooler
window.

SetPort( NULL, PortName, 3, (LPBYTE)&PortInfo3);

What am I doing wrong?

\Manfred

RE: Using SetPort to display custom messages in the spooler by bobbym

bobbym
Tue Dec 07 16:07:48 CST 2004

------=_NextPart_0001_E751B99C
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


--------------------
From: "Manfred Wilner" <manfred.w@swecoinus.com>
Subject: Using SetPort to display custom messages in the spooler
Date: Tue, 7 Dec 2004 16:08:19 -0500
Lines: 14
rs

I am trying to display a custom message in the spooler instead of the
default messages.
I am using SetPort with a PortInfo3 structure.
Copying the string with PortInfo3.pszStatus = _wcsdup(TEXT("My Text"));
The text is actually accessible but will not be displayed by the spooler
window.

SetPort( NULL, PortName, 3, (LPBYTE)&PortInfo3);

What am I doing wrong?

\Manfred


Hi Manfred,
This is a known bug, SetPort doesn't work with custom status messages.



Hope this helps.

Thank you,
Bobby Mattappally
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_E751B99C
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par \pard\li720 --------------------
\par From: "Manfred Wilner" <manfred.w@swecoinus.com>
\par Subject: Using SetPort to display custom messages in the spooler
\par Date: Tue, 7 Dec 2004 16:08:19 -0500
\par Lines: 14
\par rs
\par
\par I am trying to display a custom message in the spooler instead of the
\par default messages.
\par I am using SetPort with a PortInfo3 structure.
\par Copying the string with PortInfo3.pszStatus = _wcsdup(TEXT("My Text"));
\par The text is actually accessible but will not be displayed by the spooler
\par window.
\par
\par SetPort( NULL, PortName, 3, (LPBYTE)&PortInfo3);
\par
\par What am I doing wrong?
\par
\par \\Manfred
\par
\par
\par Hi Manfred,
\par This is a known bug, SetPort doesn't work with custom status messages.
\par
\par \pard
\par
\par Hope this helps.
\par
\par Thank you,
\par Bobby Mattappally
\par Microsoft
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_E751B99C--


Re: Using SetPort to display custom messages in the spooler by Manfred

Manfred
Wed Dec 08 10:24:36 CST 2004

Hello Bobby,

Well this doesn't help :( really since I can't do what I want to do but it
clarifies the situation at least.

Is Microsoft doing anything to solve this issue or is there a workaround?

Thank you,

\Manfred


"Bobby Mattappally [MS]" <bobbym@online.microsoft.com> wrote in message
news:KyaI2kK3EHA.3152@cpmsftngxa10.phx.gbl...
>
> --------------------
> From: "Manfred Wilner" <manfred.w@swecoinus.com>
> Subject: Using SetPort to display custom messages in the spooler
> Date: Tue, 7 Dec 2004 16:08:19 -0500
> Lines: 14
> rs
>
> I am trying to display a custom message in the spooler instead of the
> default messages.
> I am using SetPort with a PortInfo3 structure.
> Copying the string with PortInfo3.pszStatus = _wcsdup(TEXT("My Text"));
> The text is actually accessible but will not be displayed by the spooler
> window.
>
> SetPort( NULL, PortName, 3, (LPBYTE)&PortInfo3);
>
> What am I doing wrong?
>
> \Manfred
>
>
> Hi Manfred,
> This is a known bug, SetPort doesn't work with custom status messages.
>
>
>
> Hope this helps.
>
> Thank you,
> Bobby Mattappally
> Microsoft
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>



Re: Using SetPort to display custom messages in the spooler by bobbym

bobbym
Wed Dec 08 14:53:51 CST 2004

------=_NextPart_0001_EC345BC7
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


--------------------
From: "Manfred Wilner" <manfred.w@swecoinus.com>
References: <u8LGiDK3EHA.2192@TK2MSFTNGP14.phx.gbl>
<KyaI2kK3EHA.3152@cpmsftngxa10.phx.gbl>
Subject: Re: Using SetPort to display custom messages in the spooler


Hello Bobby,

Well this doesn't help :( really since I can't do what I want to do but it
clarifies the situation at least.

Is Microsoft doing anything to solve this issue or is there a workaround?

Thank you,

\Manfred

Hi Manfred,
Unfortunately there no good workaround other than using the predefined
status values.
There is a bug report created for fixing it in Longhorn.

Thank you,
Bobby Mattappally
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_EC345BC7
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par \pard\li720 --------------------
\par From: "Manfred Wilner" <manfred.w@swecoinus.com>
\par References: <u8LGiDK3EHA.2192@TK2MSFTNGP14.phx.gbl> <KyaI2kK3EHA.3152@cpmsftngxa10.phx.gbl>
\par Subject: Re: Using SetPort to display custom messages in the spooler
\par
\par
\par Hello Bobby,
\par
\par Well this doesn't help :( really since I can't do what I want to do but it
\par clarifies the situation at least.
\par
\par Is Microsoft doing anything to solve this issue or is there a workaround?
\par
\par Thank you,
\par
\par \\Manfred
\par
\par \pard Hi Manfred,
\par Unfortunately there no good workaround other than using the predefined status values.
\par There is a bug report created for fixing it in Longhorn.
\par
\par Thank you,
\par Bobby Mattappally
\par Microsoft
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_EC345BC7--