Questions tagged [shellexecuteex]

A Windows shell function used to perform action(s) on a file system object. Differs from the basic shell execute/run and ShellExecute functions in that it utilizes the SHELLEXECUTEINFO structure.

ShellExecuteEx is a Windows shell function that performs an operation on a specified file system object. In contrast to the ShellExecute function, it only takes a single parameter, which is a pointer to a SHELLEXECUTEINFO structure. This structure combines multiple input and output parameters.

75 questions
0
votes
0 answers

How to wait for ShellExecute to run multiple files?

I already found the code to make the programm wait for ShellExecuteEx in this thread. How can i make ShellExecuteEx start multiple files and wait until every file is closed? Here is the code to wait for one: SHELLEXECUTEINFO ShExecInfo =…
drgy
  • 9
  • 2
0
votes
0 answers

ShellExecuteEx : get parent PID and close it

I run a child app using ShellExecuteEx command under windows. Now I want the child app to send a wm_close command to the parent app (the caller of this app) . Is that possible ?
Maverick
  • 1,105
  • 12
  • 41
0
votes
2 answers

What are the default access rights for a process started with ShellExecuteEx?

I need to perform certain operations on a process started with ShellExecuteEx - like waiting for it, duplicating handles, querying and setting information etc. Now I am wondering if I can do all these things on the hProcess member which is returned…
Heinrich Ulbricht
  • 10,064
  • 4
  • 54
  • 85
0
votes
1 answer

What does "ShellExecuteEx failed; code 18" mean (on vista)

A buddy of mine has been getting this error mesage when trying to run uninstall programs andor new program apps, windows just shows "ShellExecuteEx failed; code 18" and refuses to run the program.
Dave
  • 599
  • 4
  • 11
  • 20
0
votes
2 answers

ShellExecuteEx function always returning error code 5 (C++)

I need to start a process and have access to the PID, so I am trying to use ShellExecuteEx. I am attempting to open a batch file. However, no matter how I pass the parameters and no matter where the file is located and what permission's I have on…
JLarrimore
  • 169
  • 1
  • 2
  • 16
0
votes
0 answers

How to suspend input to my app while waiting for a sub-process to exit?

I have a function which allows me to launch a sub-process, wait until it's terminated, and return an exit code. The sub-process is Windows Installer which installs an MSI package (showing just the current progress of its install). This function is…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
0
votes
1 answer

Terminating ShellExecuteEx terminates "wrong" window

I use this code to start the webbrowser and then terminate it. However instead, after having started the webbrowser and making it the active window, it catches the window in the background (the application that starts the browser) and terminates it.…
0
votes
0 answers

How to pid of application launched using ShellExecuteEx (in case app was already running)

I want to launch an application as windows shell does when double clicked a file(.doc;.xls) OR a shortcut(.LNK) or and exe. Then i want to get the pid and window handle of launched application. Currently i am using ShellExecuteEx to launch…
Rakesh
  • 271
  • 1
  • 2
  • 11
0
votes
1 answer

ShellExecuteEx to open file properties on x64 not work

I use the following VB.net (Framework 4) code to open file properties. This works fine when target is set to x86. _ Public Structure SHELLEXECUTEINFO Public cbSize As Integer Public fMask As UInteger …
Chatfix
  • 73
  • 8
0
votes
1 answer

Elevating process via ShellExecuteInfo - Infinite shells?

I followed this article for elevating a process, however in my code below (pretty much a copy currently), when debugging, I get an infinite number of shells being created. The line it happens on is indicated. I've looked at the MSDN article here…
0
votes
1 answer

Install-Shield window is not coming on top when launched through ShellExecuteEx function

I am trying to launch a setup.exe that is made through install-shield by using below code DWORD ChildProcess(LPCSTR exePath, LPCSTR lpCmdLine ,BOOL showDialog, char* workingDir, BOOL bParentWait ) { CWnd * handle = AfxGetMainWnd (); //handle to…
ghani
  • 19
  • 2
-1
votes
1 answer

Problem at detouring ShellExecuteEx, Any Idea?

I have a process X that I inject my DLL into to detour some functions, and make some memory patches. I need to detour ShellExecuteEx(), because this process runs other processes, and then I need to inject my DLL into the child processes, too. My…
-1
votes
1 answer

How to send both command line switches and paramstring with TShellExecuteInfo

I am using Delphi 6 (yes, I know, but I am old school). I have a problem with TShellExecuteInfo. I want to run this command: C:\delphi\bin\Convert.exe -b-i plus a paramstring (folder and name of file). If I put the -b-i after the Executeinfo.lpfile…
Pthanner
  • 13
  • 5
-1
votes
1 answer

Bring UAC window to top using ShellExecuteEx()

I am using Microsoft Visual Studio 2010 and I am writing my code in C/C++. I have code which automatically starts my installation process. Installation process requires UAC in this case, so I use ShellExecuteEx() API function with runas…
cls
  • 501
  • 1
  • 5
  • 18
-1
votes
1 answer

ShellExecuteEx 7z Delphi

So I'm trying to do a archive using delphi and ShellExecuteEx my code is : Result := False; DecodeDate(now,y,m,d); NumeFisier := dir+'\Export_'+IntToStr(y)+'.'+IntToStr(m)+'.'+IntToStr(d)+'.zip'; FillChar(exInfo, SizeOf(exInfo), 0); with…
CiucaS
  • 2,010
  • 5
  • 36
  • 63
1 2 3 4
5