Skip to content

Latest commit

 

History

History
51 lines (26 loc) · 1.3 KB

PyIClassFactory.md

File metadata and controls

51 lines (26 loc) · 1.3 KB

PyIClassFactory

PyIClassFactory Object

An object which represents the IClassFactory interface. Derived from PyIUnknown

Methods

  • CreateInstance

    Creates an uninitialized object. 

  • LockServer

    Called by the client of a class object to keep a server open in memory, allowing instances to be created more quickly. 

PyIClassFactory.CreateInstance

PyIUnknown = CreateInstance(outerUnknown, iid

) Creates an uninitialized object.

Parameters

  • outerUnknown : PyIUnknown

    Usually None, otherwise the outer unknown if the object is being created as part of an aggregate.

  • iid : PyIID

    The IID of the resultant object.

Return Value

The result object will always be derived from PyIUnknown, but will be of the

type specified by iid.

PyIClassFactory.LockServer

LockServer(bInc) Called by the client of a class object to keep a server open in memory, allowing instances to be created more quickly.

Parameters

  • bInc : int

    1 of the server should be locked, 0 if the server should be unlocked.