Article View: borland.public.cppbuilder.nativeapi
Article #3513Re: DOS application title
From: Vladimir Grigoriev
Date: Wed, 07 Jun 2006 12:06
Date: Wed, 07 Jun 2006 12:06
66 lines
2776 bytes
2776 bytes
You are right Ed and on this reason I have asked my question!
Vladimir Grigoriev
"Ed Mulroy" <dont_email_me@bitbuc.ket> wrote in message
news:4486b934$1@newsgroups.borland.com...
> 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:
<4486c12d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.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-mailReferences:
<448598f6@newsgroups.borland.com> <61ub82doc0h4dh38vmf036c6dl36cd6pk4@4ax.com> <44869043@newsgroups.borland.com> <4486924b@newsgroups.borland.com> <44869ba3$1@newsgroups.borland.com> <4486b934$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: "Vladimir Grigoriev" <vlad.moscow@mail.ru> 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> <4486b934$1@newsgroups.borland.com> Subject: Re: DOS application title Date: Wed, 7 Jun 2006 16:06:38 +0400 Lines: 68 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 NNTP-Posting-Host: 195.212.29.187 Message-ID: <4486c12d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1149681965 195.212.29.187 (7 Jun 2006 05:06:05 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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