Minimize Application A from Application B

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
 
B

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top