From: vladr AT usa DOT net (Vlad R.) Newsgroups: comp.os.msdos.djgpp Subject: Re: Question about djgpp's int-wrapper Date: 12 Jun 2002 17:40:33 -0700 Organization: http://groups.google.com/ Lines: 28 Message-ID: References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020609104552 DOT 009e64e0 AT pop DOT gmx DOT net> NNTP-Posting-Host: 192.75.88.232 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023928833 7854 127.0.0.1 (13 Jun 2002 00:40:33 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 13 Jun 2002 00:40:33 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Not only a big pain, but impossible. Or do you know how to call that > from a plain DOZE program? Very possible. And yes, I do know how. > Please don't top post and cut irrelevant parts. I beg your pardon?! -- To call that from a DOS program: - write a VDD (a .dll) - from a DOS program tell NTVDM to load that DLL, and then have the DLL make the relevant system call. For an example of how to do that: - DOS loader (DOS, real-mode, but should also work in p-mode) http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/vdmsound/VDMSCore/Sources/VDDLoader/DOSDrv.cpp?rev=1.5&content-type=text/vnd.viewcvs-markup - VDD (Win32) http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/vdmsound/VDMSCore/Sources/VDDLoader/VDDDispatch.cpp?rev=1.6&content-type=text/vnd.viewcvs-markup - System call to NTDLL (Win32) http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/vdmsound/VDMSCore/Sources/VDDLoader/VDMServices.cpp?rev=1.8&content-type=text/vnd.viewcvs-markup V.