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.