Restoring a hidden process

  • Thread starter Thread starter AS
  • Start date Start date
A

AS

Hi,

I am opening an exe from my C# windows application, through
system.diagnostics.process.start() -

process.StartInfo.FileName = "c:\\windows\\system32\\vkey.exe"; ]
process.StartInfo.WorkingDirectory = "c:\\";
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();

I am starting the process in the hidden mode (processwindowstyle
hidden) and then I am doing some customization like setting window
style, windows position etc... using win32 API. After this I need to
restore the process again i.e show the hidden process window.

I tried using the win32 API function - ShowWindow(processHandle,
SW_SHOW). But it did not work.

Anyone has any idea, how to do it?
 
Hi,

IIRC this cannot be done. I could be wrong though.

My advise is for you to check the unmanaged APIs , take a look at the
equivalent createprocess API method and see what are the options there, also
check NGs related to win32 programming
 
Back
Top