Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!gould From: gould@pilot.njin.net (Brian Jay Gould) Newsgroups: comp.os.os2.programmer Subject: How to change userid of spooled file (pmspl) Message-ID: Date: 3 Jan 91 03:19:12 GMT Organization: NJ InterCampus Network, New Brunswick, N.J. Lines: 32 I am fairly new at programming OS2 and Lan Manager 2.0. (actually I am reluctant to be programming at all..:-) ) I am attempting to force a print job to have a different owner id on the console and banner page. I tried doing a DosPrintSetInfo with level 1. Although I get back a zero status, nothing changes. I'm willing to have another program on the print server change the SHD file, but I need to put the new information into it somewhere. I tried stuffing the information in by changing szCommend in the PRJINFO structure, but I don't see any new information in the SHD file. There appears to be a problem with DosPrintGetInfo. I use the structure for PRJINFO level one provided by pmspl.h, but the structure is three bytes too small. The DLL responds that it has three more bytes to return. Otherwise, everything looks OK. What am I doing wrong? On another note, DosPrintGetInfo will return an 87 on a bad argument. It isn't documented. One last question: When do you use spool versus pmspl? Thanks for any advice in advance... -- -- Any disclaimers made for me, by me, or about me - may or may not accurately reflect my failure to be reflecting the opinions of myself or anyone else. ************************************************* * Brian Jay Gould - Professional Brain-stormer * *************************************************