|
-
March 24th, 2003, 06:02 PM
#1
Making application invisible
Hello,
I would like to start another application from my own application for instance by the command
system ("aaa.exe");
but I want the new application (aaa.exe) to be invisible such that the user is unaware that another application started.
I only have access to the .exe file of the new application (aaa.exe).
Does anyone know how to accomplish this?
Thanks!
-
March 24th, 2003, 10:27 PM
#2
Hi,
Try using CreateProcess and set STARTUPINFO member wShowWindow to SW_HIDE.
See
Code:
BOOL CreateProcess(
LPCTSTR lpApplicationName, // name of executable module
LPTSTR lpCommandLine, // command line string
LPSECURITY_ATTRIBUTES lpProcessAttributes, // SD
LPSECURITY_ATTRIBUTES lpThreadAttributes, // SD
BOOL bInheritHandles, // handle inheritance option
DWORD dwCreationFlags, // creation flags
LPVOID lpEnvironment, // new environment block
LPCTSTR lpCurrentDirectory, // current directory name
LPSTARTUPINFO lpStartupInfo, // startup information
LPPROCESS_INFORMATION lpProcessInformation // process information
);
in MSDN.
Regards,
Emanuel Vaduva
-
March 25th, 2003, 01:29 AM
#3
Take a look at this FAQ for an example of 'CreateProcess()'...
-
March 25th, 2003, 12:25 PM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|