All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

System Interface IClassFactory

System.IUnknown
  |
  +---IClassFactory
 

Usage: you can freely reimplement this interface.


interface IClassFactory

IClassFactory objects factories are dedicated to instantiating components of a specified CLSID.


Method Index


o CreateInstance(IUnknown*,REFIID,void**)
Creates an uninitialized object of a specified CLSID.
o LockServer(BOOL)
Used to keep an out-process server in memory.

Methods


o CreateInstance
public virtual HRESULT __stdcall CreateInstance(IUnknown* iUnkOuter,
REFIID riid,
void** oObject)= 0
Creates an uninitialized object of a specified CLSID.
Parameters:
iUnkOuter
Pointer to whether object is or is not part of an aggregate.
riid
Reference to the identifier of the interface.
oObject
Address of output variable that receives the interface pointer requested in riid.
o LockServer
public virtual HRESULT __stdcall LockServer(BOOL iLock)= 0
Used to keep an out-process server in memory.
Parameters:
iLock
Increments or decrements the lock count.

This object is included in the file: IClassFactory.h

Copyright © 2003, Dassault Systèmes. All rights reserved.