Mail Archives: djgpp/2002/02/09/21:39:24
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f
|
From: | Altaf <aladhani AT charter DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Problem accessing FP_SEG and FP_OFF
|
Date: | Sat, 09 Feb 2002 21:18:06 -0500
|
Organization: | Alpha Network Solution (www.alphanetsolution.com)
|
Message-ID: | <3C65D85D.E661116E@charter.net>
|
X-Mailer: | Mozilla 4.78 [en] (Windows NT 5.0; U)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
X-Complaints-To: | newsabuse AT supernews DOT com
|
Lines: | 61
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
--------------97B1C89C8C2420BEF869FE50
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Folks,
I am trying to access FP_SEG and FP_OFF functions. Non of the DJPP's
header files have any reference to them. They are supposed to be in
dos.h. I wonder if I need to do something else. Here is a code that I am
trying to compile.
If someone can send some solution?
/************************/
union REGS inregs, outregs ;
struct SREGS segregs ;
unsigned char *fdata ;
fdata = (char *)profileptr ;
inregs.h.ah = 0x44 ; /* write ioctl command */
inregs.h.al = 0x03 ; /* write ioctl command */
inregs.x.bx = handle ; /* file handle */
segregs.ds = FP_SEG( fdata ) ;
inregs.x.dx = FP_OFF( fdata ) ;
inregs.x.cx = SETPROFILE ;
intdosx( &inregs, &outregs, &segregs ) ;
/ ****************************************/
--------------97B1C89C8C2420BEF869FE50
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi Folks,
<p>I am trying to access FP_SEG and FP_OFF functions. Non of the DJPP's
header files have any reference to them. They are supposed to be in dos.h.
I wonder if I need to do something else. Here is a code that I am trying
to compile.
<p>If someone can send some solution?
<br>
<p>/************************/
<br> union REGS inregs, outregs ;
<br> struct SREGS segregs ;
<br> unsigned char *fdata ;
<p> fdata = (char *)profileptr ;
<br> inregs.h.ah = 0x44 ; /* write ioctl
command */
<br> inregs.h.al = 0x03 ; /* write ioctl
command */
<br> inregs.x.bx = handle ; /* file handle */
<br> segregs.ds = <font color="#FF0000">FP_SEG</font>( fdata ) ;
<br> inregs.x.dx = <font color="#CC0000">FP_OFF</font>( fdata ) ;
<br> inregs.x.cx = SETPROFILE ;
<br> intdosx( &inregs, &outregs, &segregs ) ;
<br>/ ****************************************/</html>
--------------97B1C89C8C2420BEF869FE50--
- Raw text -