IClassFactory::LockServer
Called by the client of a class object to keep a server open in memory, allowing instances to be created more quickly.
客户能够调用这个方法来保持服务器不被卸载。
如果需要卸载当前不使用的服务器,用
CoFreeUnusedLibraries
CoFreeUnusedLibraries
Unloads any DLLs that are no longer in use and that, when loaded, were specified to be freed automatically.