Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5967899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:00:40+00:00 2026-05-22T20:00:40+00:00

I need to programmatically minimize and maximize a fullscreen 16bit application. Unfortunately DosBox is

  • 0

I need to programmatically minimize and maximize a fullscreen 16bit application. Unfortunately DosBox is not an option as this app talks to some peripherals not supported by DosBox.

I was able to write code (heavy on the Win32 API) that can set the focus, send the alt + enter keys and minimize/maximize.

Everything would work, however, some users have figured out that Alt + Enter can exit fullscreen and have started to abuse this.

I can disable Alt + Enter using the settings in a PIF, but that breaks my approach of programmatically sending those keys.

Is there a better alternative for getting NTVDM to programmatically toggle fullscreen than sending Alt + Enter?

I used Spy++ and found that to achieve fullscreen NTVDM was changing the system resolution to 640 x 480.

I attempted to call the ChangeDisplaySettings API to toggle the resolutions as needed, but when I set 640 x 480 NTVDM still runs as a windowed app.

I’m considering setting up a low level keyboard hook (http://msdn.microsoft.com/en-us/library/ms644985(v=vs.85).aspx) to filter Alt + Enter. I could disable the hook for the brief moment it takes my app to send it. This sounds like a dangerous hack that could have a lot of side-effects. I’m also not sure it would work since NTVDM doesn’t seem to use a message loop for processing keyboard input. The SendMessage API doesn’t produce results, and Alt + Enter had to be sent using the keybd_event API. Any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:00:40+00:00Added an answer on May 22, 2026 at 8:00 pm

    How about a different approach–quit trying to block it. Instead, keep track of the window (say 10x second), if it’s not full screen and you didn’t send an Alt-Enter in the last couple of seconds, send one.

    If someone hits Alt-Enter it goes into a window and immediately back to full screen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a C# Windows Mobile application that I need to programmatically invoke
I need to create a Firebird Database programmatically using DBExpress. I have done this
I am working on a simple application in which I need send sms programmatically
I need to programmatically create a shortcut using C++. How can I do this
I need to programmatically add and remove rows from a Word 2010 table. Unfortunately
I need to perform several operations on a list of windows (minimize some of
In our ASP.NET application, we need to programmatically access (read/Write) a shared location that
I need to create programmatically a folder named MY_FOLDER in the 'folder /Library/Application Support'.
I need to add some numbers / text, programmatically so it shows on top
I need to programmatically trigger the change event. This I can usually do, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.