🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3512

Re: DOS application title

#3512
From: Ed Mulroy
Date: Wed, 07 Jun 2006 11:32
57 lines
2502 bytes
That is a Windows 95 function.  The results of both what you report and what 
I tried imply that XP does not support it.

I tried both the assembly code you posted and the following C code in large 
model using TC 2 under XP Pro.

----------------------
#include <stdio.h>
#include <dos.h>

char app_title[2048];

int main()
  {
  int result;

  _ES = FP_SEG(app_title);
  _DI = FP_OFF(app_title);
  _CX = sizeof(app_title);
  _DX = 2;
  _AX = 0x168E;
  geninterrupt(0x2F);
  result = _AX;
  printf("%X\n\"%s\"\n", result, app_title);
  return 0;
  }
----------------------
If it succeeds, AX should return with the value 1or 0 for
success or failure.
When the above code is run it shows this:
""
168E
This implies that the interrupt was not executed - that the DOS
virtual machine only did a return.
----------------------

.  Ed

> Vladimir Grigoriev wrote in message
> news:44869ba3$1@newsgroups.borland.com...
>
> Yes it is 16-bit DOS application.
> I has been thinking about Get Application Title service but
> it does not work on XP.
>
> Get Application Title
> Copies the application title to the specified buffer.
> mov ah, 16h ; Windows multiplex function
> mov al, 8Eh ; VM Title
> mov di, seg AppTitle ; see below
> mov es, di
> mov di, offset AppTitle
> mov cx, Size ; see below
> mov dx, 2 ; Get Application Title
> int 2Fh
> cmp ax, 1
> je success
Technical Details
Message-ID: <4486b934$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <448598f6@newsgroups.borland.com> <61ub82doc0h4dh38vmf036c6dl36cd6pk4@4ax.com> <44869043@newsgroups.borland.com> <4486924b@newsgroups.borland.com> <44869ba3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7ae9512679517f2b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <448598f6@newsgroups.borland.com> <61ub82doc0h4dh38vmf036c6dl36cd6pk4@4ax.com> <44869043@newsgroups.borland.com> <4486924b@newsgroups.borland.com> <44869ba3$1@newsgroups.borland.com>
Subject: Re: DOS application title
Date: Wed, 7 Jun 2006 07:32:01 -0400
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 69.242.35.97
Message-ID: <4486b934$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1149679924 69.242.35.97 (7 Jun 2006 04:32:04 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail