Mail Archives: djgpp/1994/07/30/16:57:01
> _go32_dpmi_registers regs;
>
> /* INT 21H/AX=4409H returns DX with 12th bit set, if drive is remote. */
> regs.h.ah = 0x44; /* IOCTL, Subfunction 09h */
> regs.h.al = 9;
> regs.h.bl = drv_no + 1; /* 0 = default, 1 = 'A', etc. */
> _go32_dpmi_simulate_int(0x21, ®s);
You MUST completely initialize the _go32_dpmi_registers structure (see
the manual). I recommend using memset(®s, 0, sizeof(regs)) before
each place where you start filling in registers.
Primarily, the stack must be zero'd or initialized to point to a real
stack or your program *will* crash.
DJ
- Raw text -