Message-ID: <32D1840D.4DC3@rangenet.com> Date: Mon, 06 Jan 1997 17:00:29 -0600 From: Dan Hedlund Reply-To: markiv AT rangenet DOT com Organization: Range Net MIME-Version: 1.0 To: Eli Zaretskii , djgpp AT delorie DOT com Subject: Re: WinSock in Dos with WIn95 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > > On Sun, 5 Jan 1997, Dan Hedlund wrote: > > > I havent found a way to call the entry point directly from protected > > mode, so I'm just using DPMI functions to call it in real mode from > > protected mode. (DPMI function 0x0301) > > Did you try library function `__dpmi_simulate_real_mode_procedure_retf'? I'm using my own library. > It is specifically there for the situations like yours. It indeed calls > DPMI function 0x301, but it does a bit of bookkeeping, which might be all > you need to make the VxD calls work. What I ment was: Int 2f returns a real mode entry point when called from real mode, and a PM entry point when called from PM. The RM entry point works fine, but the PM entry point just causes in a GPF... I think the PM entry point might only be for 16 bit PM programs. When the entry point is called, AX has the function number, and ES:BX points to a structure that has the parameters for the function. When I debuged it, I set ES:EBX to the address of the structure. EBX was less than 64k. Do you think I should try allocating a 16 bit LDT, and putting the structure there? -- ***** *** ** ** Dan M. Hedlund ** ** ***** *** ** ** ** ** ** **** ** http://www.rangenet.com/markiv ** ** ** ** ** ** ** ** ** ******* ** **** ** ** ** ** ** *** ** ** ** ** ** ** ***** ** ** ** **