com.jniwrapper.win32.com
Interface IClassFactory
- All Superinterfaces:
- AutoDeleteParameter, IUnknown
- All Known Subinterfaces:
- IClassFactory2
- All Known Implementing Classes:
- IClassFactory2Impl, IClassFactoryImpl, IClassFactoryServer
- public interface IClassFactory
- extends IUnknown
This interface provides methods for handling creation of new instances of a
COM class.
- See Also:
- Microsoft
COM SDK documentation
INTERFACE_IDENTIFIER
public static final java.lang.String INTERFACE_IDENTIFIER
- See Also:
- Constant Field Values
createInstance
public void createInstance(IUnknown outer,
IID iid,
IUnknown result)
throws ComException
- Creates an uninitialized object.
- Parameters:
outer
- [in]
parameter, points to controlling interface
of an aggregate, or null
if the object isn't being created
as part of an aggregate.iid
- [in]
parameter, identifier for the interface used
for communication with a new object.result
- [out]
parameter, instance implementing a
required interface.
- Throws:
ComException
- if the object creation fails.
createInstance
public void createInstance(IUnknown outer,
java.lang.String stringIID,
IUnknown result)
throws ComException
- Creates an uninitialized object.
- Parameters:
outer
- [in]
parameter, points to controlling interface
of an aggregate, or null
if the object isn't being created
as part of an aggregate.stringIID
- [in]
parameter, string representation of
identifier for the interface used for communication with a new object.result
- [out]
parameter, instance implementing a
required interface.
- Throws:
ComException
- if the object creation fails.
lockServer
public void lockServer(VariantBool fLock)
throws ComException
- Parameters:
fLock
- [in]
- Throws:
ComException