🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
10 messages
10 total messages Started by Vladimir Grigoriev Tue, 06 Jun 2006 15:02
DOS application title
#3499
Author: Vladimir Grigoriev
Date: Tue, 06 Jun 2006 15:02
3 lines
932 bytes
How to get in DOS application running under Windows XP its title?

Vladimir Grigoriev
Re: DOS application title
#3507
Author: Bob Gonder
Date: Tue, 06 Jun 2006 21:49
6 lines
1187 bytes
Vladimir Grigoriev wrote:

>How to get in DOS application running under Windows XP its title?

If it is not actually a DOS application, but instead a Win32 Console
application (large difference), use GetApplicationTitle().
Re: DOS application title
#3508
Author: Vladimir Grigoriev
Date: Wed, 07 Jun 2006 08:37
15 lines
1317 bytes
Bob
It is indeed DOS appliction. So I only can use DOS services.
Vladimir Grigoriev

"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:61ub82doc0h4dh38vmf036c6dl36cd6pk4@4ax.com...
> Vladimir Grigoriev wrote:
>
> >How to get in DOS application running under Windows XP its title?
>
> If it is not actually a DOS application, but instead a Win32 Console
> application (large difference), use GetApplicationTitle().
>
>
>
Re: DOS application title
#3509
Author: Pete Fraser
Date: Wed, 07 Jun 2006 08:45
18 lines
1599 bytes
So it is a 16 bit application?
If it's 32 bit then it's a Win32 Console app
HTH Pete

"Vladimir Grigoriev" <vlad.moscow@mail.ru> wrote in message 
news:44869043@newsgroups.borland.com...
> Bob
> It is indeed DOS appliction. So I only can use DOS services.
> Vladimir Grigoriev
>
> "Bob Gonder" <notbg@notmindspring.invalid> wrote in message
> news:61ub82doc0h4dh38vmf036c6dl36cd6pk4@4ax.com...
>> Vladimir Grigoriev wrote:
>>
>> >How to get in DOS application running under Windows XP its title?
>>
>> If it is not actually a DOS application, but instead a Win32 Console
>> application (large difference), use GetApplicationTitle().
Re: DOS application title
#3511
Author: Vladimir Grigoriev
Date: Wed, 07 Jun 2006 09:26
41 lines
2256 bytes
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

Vladimir Grigoriev

"Pete Fraser" <pete.nospam.fraser.nospam@frasersoft.nospam.net> wrote in
message news:4486924b@newsgroups.borland.com...
> So it is a 16 bit application?
> If it's 32 bit then it's a Win32 Console app
> HTH Pete
>
> "Vladimir Grigoriev" <vlad.moscow@mail.ru> wrote in message
> news:44869043@newsgroups.borland.com...
> > Bob
> > It is indeed DOS appliction. So I only can use DOS services.
> > Vladimir Grigoriev
> >
> > "Bob Gonder" <notbg@notmindspring.invalid> wrote in message
> > news:61ub82doc0h4dh38vmf036c6dl36cd6pk4@4ax.com...
> >> Vladimir Grigoriev wrote:
> >>
> >> >How to get in DOS application running under Windows XP its title?
> >>
> >> If it is not actually a DOS application, but instead a Win32 Console
> >> application (large difference), use GetApplicationTitle().
>
>
Re: DOS application title
#3512
Author: 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
Re: DOS application title
#3513
Author: Vladimir Grigoriev
Date: Wed, 07 Jun 2006 12:06
66 lines
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
>
>
Re: DOS application title
#3514
Author: Bob Gonder
Date: Wed, 07 Jun 2006 15:59
15 lines
1643 bytes
Vladimir Grigoriev wrote:

>You are right Ed and on this reason I have asked my question!

And now you have your answer.
DOS is Dead!
Long Live Win64!

Or, put another way...
Live by the extension, die by the extension.

We've discussed the merits of using those DOS extentions before.
Nothing has changed in those conclusions.
Microsoft has claimed many times that they are no longer supporting
DOS.  You have proved it.
Re: DOS application title
#3504
Author: ali
Date: Wed, 07 Jun 2006 20:15
10 lines
1166 bytes
use the API function  FindWindow();


"Vladimir Grigoriev" <vlad.moscow@mail.ru> wrote in message 
news:448598f6@newsgroups.borland.com...
> How to get in DOS application running under Windows XP its title?
>
> Vladimir Grigoriev
>
> 
Re: DOS application title
#3506
Author: ali
Date: Wed, 07 Jun 2006 20:15
10 lines
1143 bytes
use the API function  FindWindow();


"Vladimir Grigoriev" <vlad.moscow@mail.ru> wrote in message 
news:448598f6@newsgroups.borland.com...
> How to get in DOS application running under Windows XP its title?
>
> Vladimir Grigoriev
>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads