HRESULT IClassFactory::LockServer(BOOL Verrouiller);
Verrouiller a pour valeur :
#include <windows.h>
#include <winbase.h>
#include <ole2.h>
IClassFactory *pIClassFactory;
...
if (pIClassFactory->LockServer(TRUE)!=S_OK)
{
...
}
...
if (pIClassFactory->LockServer(FALSE)!=S_OK)
{
...
}
...