From: elf AT netcom DOT com (Marc Singer) Message-Id: <199605221639.JAA29978@netcom9.netcom.com> Subject: Re: Calling Windows routines in djgpp To: A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk (A.Appleyard) Date: Wed, 22 May 1996 09:39:40 -0700 (PDT) Cc: djgpp AT delorie DOT com (DJGPP List Alias) In-Reply-To: from "A.Appleyard" at May 22, 96 09:59:08 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1689 > (0) I have found that Windows functions are in a number of tables > of them, e.g. GetFilePortName is number 343 in the table USER, and > that it is called as `WORD FAR PASCAL GetFilePortName(LPOSFTRUCT) > LPOFSTRUCT lpofstruct; (display a "print to file" box and return the > chosen file's details in arg `lpofstruct'). Good. > (1) Where is FTP or WWW info about special interrupts that only > work in Windows? None such exist. > (2) Where on FTP or WWW is a full listing of these Windows > functions (names, arg patterns, what they do, what number position > in which table)? The information on (0) is from `Undocumented > Windows', which does not describe `documented' functions (documented > where (including number and table name)?). You need the import library files to get the DLL link numbers. These libraries are likely to be copyrighted by MS, so you need a compiler that supports Windows to get the data, or you can get someone to extract the data. > (3) Please: If one of these functions is the n'th function in the > table QWERTY, and it has such and such an arg pattern, how do I call > it from djgpp? If someone could write an interface that will let a > djgpp program start under Windows (not in a DOS box) and call just > one of these functions, say the abovementioned GetFilePortName, I > can (given a source of information (2)) do the rest of the donkey > work and make altered copies of GetFilePortName's interface matter > to call each of the many other such Windows functions. Check out RSXWIN. The author solved this problem already. You may need to buy one of those books if you want to learn about programming to the Windoze API. Marc Singer