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--