Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have an application,it can be any exe file or bat file.now i use the api createprocess to run the file.set the struct STARTUFINFO si.si.wShowWindow = SW_HIDE;si.dwFlags = STARTF_USESSHOWWWINDOW; but not every file is really hide.what can i do?
Posted

 
Share this answer
 
An alternative is to create a separate window station and create the process under the new window station. Leave the current window station active. Do this only if you don't want the new process to interact with the current desktop.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms687107%28v=vs.85%29.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900