473,408 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Minimize Application A from Application B

Bob
Hi,
Application A (A legacy 16 Bit Windows App.) has a background process that
is required by Dot net Application B.
For security reasons Application A's GUI needs to be made unavailable to the
PC user.
I figured that if Application B minimised Application A and prevented it
from being restored that would do the job.
I can see how to enumerate through the running processes and get a handle
for Application A but I can't find the WINAPI call (SendMessage?) that I
need to make to minimise it.
I also read that a 'hook' might provide a way of preventing the user from
restoring Application A.
I would appreciate any guidance on how to correctly implement this
functionality.
thanks
Bob
Nov 21 '05 #1
1 1060
Bob
Hi all,
Thanks
Problem Solved.
FindWindow to get the handle and ShowWindow to minimize it.
Well... It works with Notepad so hopefully it will work with the legacy app.
Bob
"Bob" <bo*@nowhere.com> wrote in message
news:eW**************@TK2MSFTNGP09.phx.gbl...
Hi,
Application A (A legacy 16 Bit Windows App.) has a background process that
is required by Dot net Application B.
For security reasons Application A's GUI needs to be made unavailable to the PC user.
I figured that if Application B minimised Application A and prevented it
from being restored that would do the job.
I can see how to enumerate through the running processes and get a handle
for Application A but I can't find the WINAPI call (SendMessage?) that I
need to make to minimise it.
I also read that a 'hook' might provide a way of preventing the user from
restoring Application A.
I would appreciate any guidance on how to correctly implement this
functionality.
thanks
Bob

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tony Ciconte | last post by:
I cannot seem to find the VBA code that will minimize the whole Access apllication. The instruction... "Application.DoCmd.Minimize" seems to only minimize the active screen. What I need is a VBA...
7
by: Bhargavan | last post by:
Hey Group, When I minimize and then maximize a form (in windows application), I see a significant drop in memory usuage in the task manager. I tried to do the same thing programatically during the...
3
by: Maka Sili | last post by:
Hi, My VC++ application does not have a titlebar (and therefore no System menu, no minimize, no maximize and no close button). We have a custom button for minimize and close. When the app...
8
by: Avi G | last post by:
Hi, i've created an application and i want it to be minimized to the sys tray, how i do it? if you can direct me step by step even with create a small application and put it in the sys tray ...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.