IClassFactory::LockServer<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
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.
本文介绍了 IClassFactory::LockServer 方法的作用及其应用场景。该方法允许客户端维持服务器在内存中的状态,以便更快地创建实例。同时,还介绍了如何通过 CoFreeUnusedLibraries 卸载不再使用的服务器。
122

被折叠的 条评论
为什么被折叠?



