ShellExecuteEx
ShellExecuteEx
Does anyone have any problems with using the ShellExecuteEx API on 64 bit Windows Vista or Windows 7 systems?
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
-
lexvictory
- Addict

- Posts: 1027
- Joined: Sun May 15, 2005 5:15 am
- Location: Australia
- Contact:
Re: ShellExecuteEx
what problems are you having? it works fine here on Win 7
Demonio Ardente
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Re: ShellExecuteEx
not really a problem, just a slightly different operation behavior in a 64 bit system that sort of suprised me. In "sketching" out some code today for a project I used this:lexvictory wrote:what problems are you having? it works fine here on Win 7
Code: Select all
Procedure Elevated_Cmd(app_dir.s, app_name.s)
AppVerb$ = "runas"
AppName$ = app_name
AppDir$ = app_dir
shExecInfo.SHELLEXECUTEINFO
shExecInfo\cbSize=SizeOf(SHELLEXECUTEINFO)
shExecInfo\fMask=#Null
shExecInfo\hwnd=#Null
shExecInfo\lpVerb=@AppVerb$
shExecInfo\lpFile=@AppName$
shExecInfo\lpDirectory=@AppDir$
shExecInfo\nShow=#SW_NORMAL
exe.i = ShellExecuteEx_(@shExecInfo)
ProcedureReturn exe
EndProcedure
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Re: ShellExecuteEx
Depends on the exe you try to run.
For example a 32bit program can run a 32it or 64bit exe.
but I'm not so sure if a 64bit program will call a 32bit exe as I assume that 64bit windows does not search the 32bit exe system path?
But it will let search the 32bit and 64bit system paths on 32bit for compatibility reasons I assume?
Just a guess though, ever really tested such behavior.
For example a 32bit program can run a 32it or 64bit exe.
but I'm not so sure if a 64bit program will call a 32bit exe as I assume that 64bit windows does not search the 32bit exe system path?
But it will let search the 32bit and 64bit system paths on 32bit for compatibility reasons I assume?
Just a guess though, ever really tested such behavior.