473,320 Members | 1,922 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,320 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 3041
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ed_spain | last post by:
Hi Everyone, On an HTML page with 2x different forms, how can I redisplay the same page after a submit, restoring the values from BOTH forms even though only one was submitted? I have an...
0
by: cemal eroglu | last post by:
Hi, I don't use CreateNoWindow=True since I would like to see this application on the task manager (as an application) and I should be able to end the task (and its child processes etc). So I used...
5
by: Susan | last post by:
I have an application. When a user minimizes it it hides itselfs but stays activate in the system tray. Since it is hidden the user may think that they have exited the application and now may...
0
by: Joe Harrison | last post by:
Hello. I have an application which I check to see if there is another running instance at startup. If there is another running instance, I set focus to the existing instance. I am using code...
3
by: rdemyan via AccessMonster.com | last post by:
I'm thinking about providing a relatively easy method for users to restore the front end from a backup. The purpose is to allow for restoring if the front end becomes corrupt. Here are some...
2
by: =?Utf-8?B?UG9ueSBUc3Vp?= | last post by:
Hi, Can i write a vb program to list the hidden process and kill it ? Thanks -- Pony Tsui
3
by: gimme_this_gimme_that | last post by:
Depending upon a radio button button's setting a div is either hidden or visible. It turns out that the default view of the page requires that the div be hidden. When the user opts for the...
0
by: DMT012 | last post by:
Hello. Occasionally on my production server when I run an automated script to restore a database from a backup it hangs and the database is put in restoring mode and just stays there, requiring me...
3
by: andersond | last post by:
I have a webpage that uses visible and hidden tables to create the effect of going from screen to screen. Because a user might want to go back and change previous selections I have a "previous page"...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.