Pausing a program and removing a dll from it

I don't know if it's possibile.Anyway.
I read http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20783366.html about how to freeze a application.(there was not listed the source code)
Is there a way not only to freeze the application but to remove the "x.dll" from it, than later attach a new "x.dll" to it and resume the application.

Thanks in advance

diandr
diandrAsked:
Who is Participating?
 
AmigoJackCommented:
if youre not interested in the code but rather in tools to accomplish this, goto www.sysinternals.com and search for "pssuspend" and "handle". the first will suspend or resume whole processes, the other can list open handles of a given process and also kill handles. only the re-attach of another library is not possible with that tools.

but what you want sounds suspect. why want you to freeze an app, change one of its dlls with another (i guess modified) one and then resume it? why wont it work with initially starting the app with the other dll?
0
 
diandrAuthor Commented:
Also the program has to find the application that use "x.dll"
0
 
Eddie ShipmanAll-around developerCommented:
You don't have to 'freeze' an app to unload a DLL. Just use FreeLibrary and LoadLibrary to reload it.
0
 
AmigoJackCommented:
Eddie, i think he wants to do it to a foreign application, not his own ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.