www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/12/20:50:39

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: <fc5733ab.0206121640.6deae4c9@posting.google.com>
References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020609104552 DOT 009e64e0 AT pop DOT gmx DOT net> <advaa1$cgm$1 AT antares DOT lu DOT erisoft DOT se> <DILM8.896$ca2 DOT 121610 AT newsfep1-win DOT server DOT ntli DOT net> <fc5733ab DOT 0206091719 DOT 322f6c70 AT posting DOT google DOT com> <ae1mr3$87f$1 AT antares DOT lu DOT erisoft DOT se>
NNTP-Posting-Host: 192.75.88.232
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019