Pausing a program and removing a dll from it

I don't know if it's possibile.Anyway.
I read 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

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

diandrAuthor Commented:
Also the program has to find the application that use "x.dll"
if youre not interested in the code but rather in tools to accomplish this, goto 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?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eddie ShipmanAll-around developerCommented:
You don't have to 'freeze' an app to unload a DLL. Just use FreeLibrary and LoadLibrary to reload it.
Eddie, i think he wants to do it to a foreign application, not his own ;-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.