Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.cv.hp.com (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: How to start up Windows with an application ? Message-ID: <106580074@hpcvlx.cv.hp.com> Date: 6 Dec 89 19:48:21 GMT References: <5443@ncrcae.Columbia.NCR.COM> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 18 > If you examine the DEF file for most Windows programs you will see a line like: > STUB 'WINSTUB.EXE'. > This line tells the linker to add the program WINSTUB.EXE to the beginning of > the old-EXE file header. Since DOS only knows about the old style EXE header > this program will be run. In the case of WINSTUB.EXE it just displays the > message telling you that you must load Windows first. If you want to have > Windows automatically started you will need to replace WINSTUB.EXE with your > own stub program which would start Windows for you. I have written such a critter, and am willing to share it. Unfortunately, I can't seem to find the source for it, but I have the executable. If there's enough interest, I can post it; otherwise drop me a line. (The program was simply a call to exec with argv[0] as the program name. At least that's what my memory seems to recall....) --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems