🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.misc
1 messages
1 total messages Started by Jeremy Mathers Mon, 25 Jan 1993 23:49
Popping up the System menu in a DOS window
#2345
Author: Jeremy Mathers
Date: Mon, 25 Jan 1993 23:49
38 lines
2039 bytes
Is it possible to simulate the pressing of Alt/Space in a DOS window, in
order to bring up the System menu?  I need to be able to do this for a
project I am working on.

I would think the following fragment ought to work, but it doesn't:

	xor ax,ax
	mov ds,ax
	or byte ptr [417],8		; Turn on Alt
	mov ax,4F39			; (39 = scan code for space)
	stc				; sentinel for ignoring key
	int 15
	...

Note: the above code was cribbed from the reboot code in the
comp.os.msdos.programmer FAQ.

My background:  I am an experienced DOS programmer, and have written
many "pop" programs to pop up TSRs that read the keyboard directly, so I
am familiar with the general concepts (tracing the interrupts, etc)
Generally, all you have to do is follow the INT 9 handler, but I noticed
that WIN386 doesn't capture INT 9, so I am surmising that it is watching
the keyboard via INT 15.  (It could also be doing it via INT 8, but that
didn't seem to be the case)

But I am not a Windows programmer, nor do I have any desire to be.
Thus, email responses would be greatly appreciated, since I probably
don't read this group...

************************************************************************
Our buggy newsreader limits
the length of .signature files
to 4 lines, but I have figured out
a way to have as many lines as

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
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