Microsoft SDK for Java

IClassFactory Interface

The IClassFactory Interface of the com.ms.com package deals with an entire class of objects, and so is implemented on the class object for a specific class of objects (identified by a CLSID).

You must implement this interface for every class that you register in the system registry and to which you assign a CLSID, so objects of that class can be created.

Note   The IClassFactory interface was added as of versions 2925 through 3167 of the Microsoft virtual machine.

public interface IClassFactory extends IUnknown
{
  // Methods
  public IUnknown CreateInstance(IUnknown pUnkOuter, _Guid riid);
  public void LockServer(boolean fLock);
}

IUnknown
  |
  +--IClassFactory

© 1999 Microsoft Corporation. All rights reserved. Terms of use.