Message-Id: <1.5.4.32.19971106130251.006c5244@dce03.ipt.br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 06 Nov 1997 11:02:51 -0200 To: Eli Zaretskii , "N. D. Culver" From: Cesar Scarpini Rabak Subject: Re: WIN95 and Alt Esc or Ctl Esc Cc: djgpp AT delorie DOT com Precedence: bulk At 12:38 06/11/97 +0200, Eli Zaretskii wrote: > >On Wed, 5 Nov 1997, N. D. Culver wrote: > >> Is it possible to detect when the user types Alt Esc or Ctl Esc >> when running DJGPP in Dos Box full screen mode under WIN 95/NT? > >Your description implies that you want something different: you want >to know, from within a running program, whether it was minimized and >then maximized again. The keys that were used for that are NOT what >you are after. Is that correct? > >If it is, then I don't think Windows has an easily-used service for >that. You might try two related services that I found by quickly >searching Ralf Brown's Interrupt List (see below). > [snipped] >--------W-2F1684BX7FE0----------------------- >INT 2F - MS Windows - VSWITCHD - GET API ENTRY POINT > AX = 1684h > BX = 7FE0h (virtual device ID for VSWITCHD device) (see #2329) > ES:DI = 0000h:0000h >Return: ES:DI -> VxD API entry point (see #2402) > 0000h:0000h if the VxD does not support an API > >(Table 2402) >Call VSWITCHD entry point with: > AX = function > 0000h toggle windowed mode (simulate Alt-Enter keypress) > Return: nothing > 0001h get windowed mode > Return: CF clear if VM is windowed > CF set if VM is full-screen >SeeAlso: #2399,#2403 > FWIW I've tested the method using the API below and it works like a charm! OTOH, I did not figure out how to use the APIs mentioned above, but if any of you folks would like to share experiences with me, pls e-mail me personally. >--------W-2F168B----------------------------- >INT 2F - MS Windows 3.1 - SET FOCUS TO SPECIFIED VIRTUAL MACHINE > AX = 168Bh > BX = virtual machine ID (see AX=1683h), 0000h for current DOS box >Return: AL = 00h if focus set to specified VM >Notes: documented on the Microsoft Developer's Network CD-ROM > if the VM is a windowed DOS box, it will be set to full screen >SeeAlso: AX=1683h >--------W-2F168C----------------------------- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br DME/ASC Phone: 55-11-268-3522 Ext.350 IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996 Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~