X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RayeR Newsgroups: comp.os.msdos.djgpp Subject: DJGPP program under NTVDM - is possible calling a VDD driver? Date: Mon, 19 Nov 2007 02:02:57 -0800 (PST) Organization: http://groups.google.com Lines: 13 Message-ID: NNTP-Posting-Host: 195.70.144.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1195466578 30763 127.0.0.1 (19 Nov 2007 10:02:58 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 19 Nov 2007 10:02:58 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: p69g2000hsa.googlegroups.com; posting-host=195.70.144.29; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071009 SeaMonkey/1.1.5,gzip(gfe),gzip(gfe) Content-Disposition: inline To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I was reading about NTVDM and VDD drivers which purpose is to make a bridge from DOS application to win32 environment. It would be also sometimes usefull also for DJGPP programs.But as I readed it is made for 16-bit apps. The 16-bit program will prepare registers and execute special invalid opcode. Then NTVDM traps this event and call a function from 32-bit DLL which handles registers. 16-bit program will need to pass some realmode pointers to DLL name, etc in registers. Is it possible to do it under DJGPP without inline assembler? Or minimize ASM part as possible? I had done similar thing when calling just one instruction filled in transfer buffer as a binary chunk and using some __dpmi_simulate_realmode_procedure_retf or something like that. And what about VDD support in Vista NTVDM? Will it work there?