471,617 Members | 1,087 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Restoring a hidden process

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?

Jan 23 '06 #1
1 2953
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

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"AS" <Su*****************@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
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?

Jan 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by ed_spain | last post: by
reply views Thread by cemal eroglu | last post: by
5 posts views Thread by Susan | last post: by
3 posts views Thread by rdemyan via AccessMonster.com | last post: by
2 posts views Thread by =?Utf-8?B?UG9ueSBUc3Vp?= | last post: by
3 posts views Thread by gimme_this_gimme_that | last post: by
1 post views Thread by ZEDKYRIE | last post: by

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.