473,396 Members | 1,997 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,396 software developers and data experts.

ShellExecuteEx

raj
Hi,
I want to execute an Exe file in minimize mode. but when i m trying the
following

SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));

lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = _T("\\Program
Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe");
lpExecInfo.lpParameters = _T("");
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.hwnd = this->m_hWnd;
lpExecInfo.hInstApp = AfxGetInstanceHandle();

ShellExecuteEx(&lpExecInfo);

The application starts but in normal/maximize mode. Ane guidence is
appreciable
Thanks in advance
Rajat

Dec 27 '05 #1
6 17361
"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com
Hi,
I want to execute an Exe file in minimize mode. but when i m trying
the following

SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));

lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = _T("\\Program
Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe");
lpExecInfo.lpParameters = _T("");
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.hwnd = this->m_hWnd;
lpExecInfo.hInstApp = AfxGetInstanceHandle();

ShellExecuteEx(&lpExecInfo);

The application starts but in normal/maximize mode. Ane guidence is
appreciable

This is Windows-specific and off topic here. An appropriate group is

microsoft.public.vc.language

Since you are here, the nShow field determines what is passed as the last
parameter to WinMain. It is up to the application whether it takes any
notice of this parameter. Unfortunately for you, the Norton program
apparently takes no notice. Your best bet may be to try to minimize the
Norton window after the program has been launched.

--
John Carson
Dec 27 '05 #2

"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,
I want to execute an Exe file in minimize mode. but when i m trying the
following

SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));

lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = _T("\\Program
Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe");
lpExecInfo.lpParameters = _T("");
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.hwnd = this->m_hWnd;
lpExecInfo.hInstApp = AfxGetInstanceHandle();

ShellExecuteEx(&lpExecInfo);

The application starts but in normal/maximize mode. Ane guidence is
appreciable

forget ShellExecuteEx use ShellExecute instead, much simpler
eg. your.exe is executed in the background
ShellExecute(0,"open","your.exe",0,0,0);
Dec 27 '05 #3

"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,
I want to execute an Exe file in minimize mode. but when i m trying the
following

SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));

lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = _T("\\Program
Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe");
lpExecInfo.lpParameters = _T("");
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.hwnd = this->m_hWnd;
lpExecInfo.hInstApp = AfxGetInstanceHandle();

ShellExecuteEx(&lpExecInfo);

The application starts but in normal/maximize mode. Ane guidence is
appreciable

forget ShellExecuteEx use ShellExecute instead, much simpler
eg. your.exe is executed in the background
ShellExecute(0,"open","your.exe",0,0,0);
Dec 27 '05 #4

"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,
I want to execute an Exe file in minimize mode. but when i m trying the
following

SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));

lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = _T("\\Program
Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe");
lpExecInfo.lpParameters = _T("");
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.hwnd = this->m_hWnd;
lpExecInfo.hInstApp = AfxGetInstanceHandle();

ShellExecuteEx(&lpExecInfo);

The application starts but in normal/maximize mode. Ane guidence is
appreciable

forget ShellExecuteEx use ShellExecute instead, much simpler
eg. your.exe is executed in the background
ShellExecute(0,"open","your.exe",0,0,0);
Dec 27 '05 #5
oops .. apologies for the duplicate posts ..
Dec 27 '05 #6
"code_wrong" <ta*@tac.co.uk> writes:
"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,
I want to execute an Exe file in minimize mode. but when i m trying the
following

SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));

lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = _T("\\Program
Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe");
lpExecInfo.lpParameters = _T("");
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.hwnd = this->m_hWnd;
lpExecInfo.hInstApp = AfxGetInstanceHandle();

ShellExecuteEx(&lpExecInfo);

The application starts but in normal/maximize mode. Ane guidence is
appreciable

forget ShellExecuteEx use ShellExecute instead, much simpler


Wrong.

The C++ language or standard library doesn't have a function
named ShellExecuteEX or ShellExecute.

Please don't post off topic answers to off topic questions. Direct the
OP to another group where it's on topic instead, or stay quiet.

/Niklas Norrthon
Dec 29 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help...
6
by: JerryP | last post by:
Hello, is there a way to launch the property dialogue for a directory from my c# app ? I would also like to launch the User Account Properties from Active Directory Users and Computers, and the...
4
by: Patrick de Ridder | last post by:
string message = string.Format( "mailto:{0}?subject={1}&body={2}", e_address, subject, body ); Process.Start( message ); These lines transfer an email text to Outlook Express. body is a string...
0
by: Hernan Garber | last post by:
Hi, Attached, the installation log. Win 2k Server SP3 IE6SP1/SQL Server Installed Thanks Setup.exe: Setup.exe: ========== Logging started ==========
2
by: Jay | last post by:
Hello, I have an issue and I don't know if this is the correct group to post to. If it isn't, just tell me the correct group, and I will post there. I wrote a Visual C++ application that will open...
3
by: DaveP | last post by:
is there a Equivelent of ShellExecuteEx in c# thanks Dave
3
by: baje | last post by:
hi everyone, need some help; have this code to open MS Word using CreateProcess; but it is not working; what am i missing? CreateProcess(NULL, "Winword.exe", NULL, NULL, FALSE, 0, NULL, NULL,...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
0
by: yxq | last post by:
Hello, The code below can popup the property dialog of a file, it works well on XP, Vista 32bit, but it will not work on Vista 64bit, how to correct it? i have tried to change integer to intptr,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.