I am facing an issue with re entrance of one of my dll module.
I had MLClient.dll which load in to program using LoadLibrary(MLClient.dll)

boost:: shared_ptr will add a lock() on this Load & initialization of library.

Due some of my requirements I want to un initialize this library and unload.?

How can i do the same with windows functions.?

How can i leave the lock on library using boost::shared_ptr.?

Does there any problem for un load if there is a lock() on it ?

Thanks in Advance