Minimize Application A from Application B

  • Thread starter Thread starter Bob
  • Start date Start date
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
 
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
 
Back
Top