Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!ubc-cs!van-bc!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!sun-barr!newstop!jaytee!hinode!geoff From: geoff@hinode.East.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top) Newsgroups: comp.windows.ms Subject: Re: Windows 3.0 and PC-NFS 3.0.1 Message-ID: <2721@jaytee.East.Sun.COM> Date: 26 Sep 90 13:13:15 GMT References: <9487@uhccux.uhcc.Hawaii.Edu> <1060@travis.csd.harris.com> <9548@uhccux.uhcc.Hawaii.Edu> Sender: news@jaytee.East.Sun.COM Reply-To: geoff@east.sun.com (Geoff Arnold @ Sun BOS - R.H. coast near the top) Organization: Sun Microsystems PC-NFS Engineering Lines: 28 If you wish to initiate printing of spooled print data for PC-NFS, the following little MSC code fragment may prove useful. It works fine under Windows: #include #define LP_PRINT_FILE 0x063 #define LP_STAT_OK 0 #define PRINTER_INTERRUPT 0x17 spool_print(n) int n; /* set to 0: LPT1, 1: LPT2, 2: LPT3, -1: all */ { union REGS inregs, outregs; inregs.h.ah = LP_PRINT_FILE; inregs.x.bx = n; int86(PRINTER_INTERRUPT, &inregs, &outregs); if (outregs.h.ah != LP_STAT_OK) { /* failure - details unimportant here */ } } -- Geoff Arnold, PC-NFS architect, Sun Microsystems. (geoff@East.Sun.COM) -- *** "Now is no time to speculate or hypothecate, but rather a time *** *** for action, or at least not a time to rule it out, though not *** *** necessarily a time to rule it in, either." - George Bush ***