Hi all,
I wish the SDK explained the SetPort function better. I'm not really sure
what it does other than change the "Status" messages column in the "Printers
and Faxes" dialog box. Does it do anything else?
I've discovered if I use PORT_STATUS_TYPE_ERROR for dwSeverity that it does
seem to hang up the spooler, and I can't seem to clear it later. Thats ok,
because I found that PORT_STATUS_TYPE_WARNING is ok for my use.
My real question is that I would like to use the pszStatus member of
PORT_INFO_3 to display my own messages up there, but it doesn't seem to do
anything. The SDK says that if the predefined messages available for
dwStatus aren't enough that you can define your own with pszStatus. So, this
is what I do:

PORT_INFO_3 pi3;
pi3.dwStatus = 0; // set to zero because none of these messages apply.
pi3.pszStatus = TEXT("My Printer Message");
pi3.dwSeverity = PORT_STATUS_TYPE_WARNING;

SetPort(NULL,pPortName,3,LPBYTE(&pi3));

Does anybody have any ideas?

Thanks!