delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/20/00:52:16

Message-ID: <000e01bf1aa9$dd150240$ad887fc0@tanes73>
From: "Tanes Sriviroolchai" <g39tsv AT cpu200 DOT cp DOT eng DOT chula DOT ac DOT th>
To: <djgpp AT delorie DOT com>, <eliz AT is DOT elta DOT co DOT il>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991019104141 DOT 12301T-100000 AT is>
Subject: Re: Help testing DPMI on OS/2
Date: Wed, 20 Oct 1999 10:17:10 +0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Reply-To: djgpp AT delorie DOT com

When running on OS/2 Warp Connect (version 3) DOS BOX, I got the result:

SUCCESS!! FLAGS: 0x8006a
DPMI Host version: 2.1
DPMI Host vendor string: 'OS/2'

Regards,
Tanes Sriviroolchai

----- Original Message -----
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Tuesday, October 19, 1999 3:46 PM
Subject: Help testing DPMI on OS/2


> I didn't have any response from people who tried my short test program on
> OS/2.  If you can access OS/2 and run the short test program (compiled
> with DJGPP) whose source is attached below, please report what it
> printed.  Thanks!
>
> Please report the results by direct email to my address; I will post a
> summary to comp.os.msdos.djgpp.
>
> Thanks in advance.
>
> ------------------------ cut here ------------------------------
> #include <stdio.h>
> #include <dpmi.h>
>
> int main (void)
> {
>   unsigned char cap[128];
>   int flags;
>   int status = __dpmi_get_capabilities (&flags, cap);
>
>   if (status == -1)
>     printf ("31h/0401h FAILED!!  DPMI error code: 0x%x\n", __dpmi_error);
>   else
>     {
>       printf ("SUCCESS!!  FLAGS: 0x%x\n", flags);
>       printf ("DPMI Host version: %d.%d\n", cap[0], cap[1]);
>       printf ("DPMI Host vendor string: `%s'\n", cap + 2);
>     }
>
>   return 0;
> }

- Raw text -


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