Click here to Skip to main content
15,914,767 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
Cedric Moonen30-Nov-05 3:46
Cedric Moonen30-Nov-05 3:46 
GeneralRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 3:51
YaronNir30-Nov-05 3:51 
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
Gavin Taylor30-Nov-05 4:15
professionalGavin Taylor30-Nov-05 4:15 
GeneralRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 4:50
YaronNir30-Nov-05 4:50 
QuestionRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
David Crow30-Nov-05 8:03
David Crow30-Nov-05 8:03 
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 20:26
YaronNir30-Nov-05 20:26 
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
Daniel Lohmann30-Nov-05 10:36
Daniel Lohmann30-Nov-05 10:36 
GeneralRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 20:26
YaronNir30-Nov-05 20:26 
Thanks for all the replies!

i've managed...the problem was that when creating acdsee6 process, you need to set up the acdsee environment (because it loads some dll that are located else where) so you can get the environment out of the registry and then use the 'SetEnvironmentVariable' method

this works 100%....

to discover that, i needed to hook the ShellExecute method, and learned that it calls CreateProcess behind the scenes, with the necessary paramters that one of them was the environment looking at the memroy of that variable, i've seen the acdsee directory reference (the one that the dll reside)...

so mission completed Smile | :)

thanks again

Yaron

Ask not what your application can do for you,
Ask what you can do for your application
Questionprint Pin
viliam30-Nov-05 2:46
viliam30-Nov-05 2:46 
QuestionRe: print Pin
David Crow30-Nov-05 2:55
David Crow30-Nov-05 2:55 
QuestionActiveX Controls in VS 7.1 Pin
sweep12330-Nov-05 2:03
sweep12330-Nov-05 2:03 
QuestionDeviceIoControl() & COM1 Pin
button_basher30-Nov-05 1:45
button_basher30-Nov-05 1:45 
QuestionHow to make a child window appear on TaskBar Pin
pradish30-Nov-05 0:58
pradish30-Nov-05 0:58 
QuestionMFC in VC 2005 beta version Pin
narayanagvs30-Nov-05 0:52
narayanagvs30-Nov-05 0:52 
AnswerRe: MFC in VC 2005 beta version Pin
Cedric Moonen30-Nov-05 1:14
Cedric Moonen30-Nov-05 1:14 
QuestionThe procedure entry point Rtllpv4StringToAddressW in NTDLL.dll Pin
zinc_z30-Nov-05 0:43
zinc_z30-Nov-05 0:43 
AnswerRe: The procedure entry point Rtllpv4StringToAddressW in NTDLL.dll Pin
Mike Dimmick30-Nov-05 3:46
Mike Dimmick30-Nov-05 3:46 
QuestionProblem with Registry Backup Pin
rajeevktripathi30-Nov-05 0:10
rajeevktripathi30-Nov-05 0:10 
AnswerRe: Problem with Registry Backup Pin
Rajesh R Subramanian30-Nov-05 1:35
professionalRajesh R Subramanian30-Nov-05 1:35 
AnswerRe: Problem with Registry Backup Pin
David Crow30-Nov-05 2:32
David Crow30-Nov-05 2:32 
AnswerRe: Problem with Registry Backup Pin
Gavin Taylor30-Nov-05 2:40
professionalGavin Taylor30-Nov-05 2:40 
Questionhow can i access a remote machine Pin
sarvendu30-Nov-05 0:01
sarvendu30-Nov-05 0:01 
QuestionRe: how can i access a remote machine Pin
David Crow30-Nov-05 2:35
David Crow30-Nov-05 2:35 
AnswerRe: how can i access a remote machine Pin
sarvendu30-Nov-05 19:22
sarvendu30-Nov-05 19:22 
QuestionRe: how can i access a remote machine Pin
David Crow1-Dec-05 3:19
David Crow1-Dec-05 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.