IClassFactory::LockServer
Called by the client of a class object to keep a server open in memory, allowing instances to be created more quickly.
客戶能夠調(diào)用這個(gè)方法來(lái)保持服務(wù)器不被卸載。
?
如果需要卸載當(dāng)前不使用的服務(wù)器,用
CoFreeUnusedLibraries
?
CoFreeUnusedLibraries
Unloads any DLLs that are no longer in use and that, when loaded, were specified to be freed automatically.